当前位置: 首页>>代码示例>>C#>>正文


C# IFactory.Verify方法代码示例

本文整理汇总了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);
		}
开发者ID:imintsystems,项目名称:Kean,代码行数:28,代码来源:ListExisting.cs

示例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);
		}
开发者ID:imintsystems,项目名称:Kean,代码行数:8,代码来源:Structure.cs

示例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);
		}
开发者ID:imintsystems,项目名称:Kean,代码行数:13,代码来源:Nullable.cs

示例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);
		}
开发者ID:imintsystems,项目名称:Kean,代码行数:18,代码来源:Dictionary.cs

示例5: Verify

		public virtual void Verify(IFactory factory, string message, params object[] arguments)
		{
			factory.Verify(this.String, message, arguments);
		}
开发者ID:imintsystems,项目名称:Kean,代码行数:4,代码来源:StringInterface.cs

示例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);
		}
开发者ID:imintsystems,项目名称:Kean,代码行数:22,代码来源:Array.cs

示例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);
		}
开发者ID:imintsystems,项目名称:Kean,代码行数:5,代码来源:KeyValue.cs

示例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);
		}
开发者ID:imintsystems,项目名称:Kean,代码行数:6,代码来源:ComplexClass.cs


注:本文中的IFactory.Verify方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。