2019-09-10 22:48:25 +02:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using Microsoft.Build.Framework;
|
|
|
|
|
|
|
|
|
|
namespace CapnpC.CSharp.MsBuild.Generation.Tests
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
class TaskItemMock : ITaskItem
|
|
|
|
|
{
|
|
|
|
|
public string ItemSpec { get; set; }
|
|
|
|
|
|
|
|
|
|
public ICollection MetadataNames => null;
|
|
|
|
|
|
|
|
|
|
public int MetadataCount => 0;
|
|
|
|
|
|
|
|
|
|
public IDictionary CloneCustomMetadata()
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void CopyMetadataTo(ITaskItem destinationItem)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetMetadata(string metadataName)
|
|
|
|
|
{
|
2019-09-15 22:16:46 +02:00
|
|
|
|
if (metadataName == "FullPath")
|
|
|
|
|
{
|
|
|
|
|
return ItemSpec;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return string.Empty;
|
2019-09-10 22:48:25 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void RemoveMetadata(string metadataName)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetMetadata(string metadataName, string metadataValue)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|