【发布时间】:2012-05-16 07:43:27
【问题描述】:
我用moq和我的问题Tfs属性(ItemSet),怎么用moq,因为ItemSet只能得到...
public sealed class ItemSet
{
public Item[] Items { get; }
public string Pattern { get; }
public string QueryPath { get; }
public override string ToString();
}
样本,
ItemSet allItems = versionControl.GetItems(@"$/");
如何在单元测试和模拟中写作?
【问题讨论】:
-
versionControl是您自己的类的一个实例,您正在测试它吗?
标签: unit-testing testing tfs moq