///
private int count;
public int Count
{
get
{
return count;
}
}
运行这个测试,输出EmptyCollectionsCountShouldBeZero()单元测试成功界面,如图7所示。

图7 EmptyCollectionsCountShouldBeZero单元测试成功
·搁置你的测试清单代码
为你的此次操作添加为一个版本控制搁置,这样就可以在将来常常返回到这个点(版本控制),在VS2010菜单打开View|Other Windows|Pending Changes,如图8所示。

图8 Vsts2010的View|Other Windows菜单
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/