本文整理汇总了C#中IFactory.Verify方法的典型用法代码示例。如果您正苦于以下问题:C# IFactory.Verify方法的具体用法?C# IFactory.Verify怎么用?C# IFactory.Verify使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IFactory
的用法示例。
在下文中一共展示了IFactory.Verify方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Verify
public void Verify(IFactory factory, string message, params object[] arguments)
{
factory.Verify(this.Structures.Count, Is.EqualTo(2), message, arguments);
factory.Verify(this.Structures[0], message, arguments);
factory.Verify(this.Structures[1], message, arguments);
factory.Verify(this.Classes.Count, Is.EqualTo(2), message, arguments);
factory.Verify(this.Classes[0] as ComplexClass, message, arguments);
factory.Verify(this.Classes[1], message, arguments);
factory.Verify(this.Objects.Count, Is.EqualTo(4), message, arguments);
factory.Verify(this.Objects[0] as ComplexClass, message, arguments);
factory.Verify(this.Objects[1] as Class, message, arguments);
factory.Verify((bool)this.Objects[2], message, arguments);
factory.Verify((DateTime)this.Objects[3], message, arguments);
factory.Verify(this.Floats.Count, Is.EqualTo(10), message, arguments);
for (int i = 0; i < 10; i++)
factory.Verify(this.Floats[i], Is.EqualTo(i + 0.1337f), message, arguments);
factory.Verify(this.Empty.Count, Is.EqualTo(0), message, arguments);
factory.Verify(this.Single.Count, Is.EqualTo(1), message, arguments);
factory.Verify(this.Single[0], Is.EqualTo(1337), message, arguments);
factory.Verify(this.SingleObject.Count, Is.EqualTo(1), message, arguments);
factory.Verify(this.SingleObject[0] as Class, message, arguments);
}
示例2: Verify
public void Verify(IFactory factory, string message, params object[] arguments)
{
factory.Verify(this.Boolean, message, arguments);
factory.Verify(this.Integer, message, arguments);
factory.Verify(this.Float, message, arguments);
factory.Verify(this.Enumerator, message, arguments);
factory.Verify(this.String, message, arguments);
}
示例3: Verify
public virtual void Verify(IFactory factory, string message, params object[] arguments)
{
factory.Verify(this.Boolean, message, arguments);
factory.Verify(this.BooleanNull, Is.Null, message, arguments);
factory.Verify(this.Integer, message, arguments);
factory.Verify(this.IntegerNull, Is.Null, message, arguments);
factory.Verify(this.Float, message, arguments);
factory.Verify(this.FloatNull, Is.Null, message, arguments);
factory.Verify(this.Enumerator, message, arguments);
factory.Verify(this.EnumeratorNull, Is.Null, message, arguments);
factory.Verify(this.Structure, message, arguments);
factory.Verify(this.StructureNull, Is.Null, message, arguments);
}
示例4: Verify
public void Verify(IFactory factory, string message, params object[] arguments)
{
factory.Verify(this.Structures[0], message, arguments);
factory.Verify(this.Structures[1], message, arguments);
factory.Verify(this.Classes[0] as ComplexClass, message, arguments);
factory.Verify(this.Classes[1], message, arguments);
factory.Verify(this.Objects["complex"] as ComplexClass, message, arguments);
factory.Verify(this.Objects["class"] as Class, message, arguments);
factory.Verify((bool)this.Objects["boolean"], message, arguments);
factory.Verify((DateTime)this.Objects["time"], message, arguments);
for (int i = 0; i < 10; i++)
factory.Verify(this.Numbers[this.keys[i]], Is.EqualTo(i), message, arguments);
factory.Verify(this.Empty, Is.Null, message, arguments);
}
示例5: Verify
public virtual void Verify(IFactory factory, string message, params object[] arguments)
{
factory.Verify(this.String, message, arguments);
}
示例6: Verify
public virtual void Verify(IFactory factory, string message, params object[] arguments)
{
factory.Verify(this.Structures.Length, Is.EqualTo(2), message, arguments);
factory.Verify(this.Structures[0], message, arguments);
factory.Verify(this.Structures[1], message, arguments);
factory.Verify(this.Classes.Length, Is.EqualTo(2), message, arguments);
factory.Verify(this.Classes[0] as ComplexClass, message, arguments);
factory.Verify(this.Classes[1], message, arguments);
factory.Verify(this.Objects.Length, Is.EqualTo(4), message, arguments);
factory.Verify(this.Objects[0] as ComplexClass, message, arguments);
factory.Verify(this.Objects[1] as Class, message, arguments);
factory.Verify((bool)this.Objects[2], message, arguments);
factory.Verify((DateTime)this.Objects[3], message, arguments);
factory.Verify(this.Numbers.Length, Is.EqualTo(10), message, arguments);
for (int i = 0; i < 10; i++)
factory.Verify(this.Numbers[i], Is.EqualTo(i), message, arguments);
factory.Verify(this.Empty, Is.Null, message, arguments);
}
示例7: Verify
public virtual void Verify(IFactory factory, string message, params object[] arguments)
{
factory.Verify(this.Data.Key, message, arguments);
factory.Verify(this.Data.Value, message, arguments);
}
示例8: Verify
public override void Verify(IFactory factory, string message, params object[] arguments)
{
base.Verify(factory, message, arguments);
factory.Verify(this.Structure, message, arguments);
factory.Verify(this.Class, message, arguments);
}