NUnit.Framework.AssertionHelper.Expect(object, NUnit.Framework.Constraints.IResolveConstraint, string)

Here are the examples of the csharp api class NUnit.Framework.AssertionHelper.Expect(object, NUnit.Framework.Constraints.IResolveConstraint, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

7 Examples 7

1. Example

View license
[Test]
		public void ArraysDeclaredAsDifferentTypes()
		{
			string[] array1 = { "one", "two", "three" };
			object[] array2 = { "one", "two", "three" };
			Assert.AreEqual( array1, array2, "String[] not equal to Object[]" );
			Assert.AreEqual( array2, array1, "Object[] not equal to String[]" );
			Expect(array1, EqualTo(array2), "String[] not equal to Object[]");
			Expect(array2, EqualTo(array1), "Object[] not equal to String[]");
		}

2. Example

View license
[Test]
		public void ArraysDeclaredAsDifferentTypes()
		{
			string[] array1 = { "one", "two", "three" };
			object[] array2 = { "one", "two", "three" };
			Assert.AreEqual( array1, array2, "String[] not equal to Object[]" );
			Assert.AreEqual( array2, array1, "Object[] not equal to String[]" );
			Expect(array1, EqualTo(array2), "String[] not equal to Object[]");
			Expect(array2, EqualTo(array1), "Object[] not equal to String[]");
		}

3. Example

View license
[Test]
		public void ArraysDeclaredAsDifferentTypes()
		{
			string[] array1 = { "one", "two", "three" };
			object[] array2 = { "one", "two", "three" };
			Assert.AreEqual( array1, array2, "String[] not equal to Object[]" );
			Assert.AreEqual( array2, array1, "Object[] not equal to String[]" );
			Expect(array1, EqualTo(array2), "String[] not equal to Object[]");
			Expect(array2, EqualTo(array1), "Object[] not equal to String[]");
		}

4. Example

Project: nunitlite
Source File: ArrayEqualsFixture.cs
View license
[Test]
		public void ArraysDeclaredAsDifferentTypes()
		{
			string[] array1 = { "one", "two", "three" };
			object[] array2 = { "one", "two", "three" };
			Assert.AreEqual( array1, array2, "String[] not equal to Object[]" );
			Assert.AreEqual( array2, array1, "Object[] not equal to String[]" );
			Expect(array1, EqualTo(array2), "String[] not equal to Object[]");
			Expect(array2, EqualTo(array1), "Object[] not equal to String[]");
		}

5. Example

Project: AutoTest.Net
Source File: ArrayEqualsFixture.cs
View license
[Test]
		public void ArraysDeclaredAsDifferentTypes()
		{
			string[] array1 = { "one", "two", "three" };
			object[] array2 = { "one", "two", "three" };
			Assert.AreEqual( array1, array2, "String[] not equal to Object[]" );
			Assert.AreEqual( array2, array1, "Object[] not equal to String[]" );
			Expect(array1, EqualTo(array2), "String[] not equal to Object[]");
			Expect(array2, EqualTo(array1), "Object[] not equal to String[]");
		}

6. Example

Project: AutoTest.Net
Source File: ArrayEqualsFixture.cs
View license
[Test]
		public void ArraysDeclaredAsDifferentTypes()
		{
			string[] array1 = { "one", "two", "three" };
			object[] array2 = { "one", "two", "three" };
			Assert.AreEqual( array1, array2, "String[] not equal to Object[]" );
			Assert.AreEqual( array2, array1, "Object[] not equal to String[]" );
			Expect(array1, EqualTo(array2), "String[] not equal to Object[]");
			Expect(array2, EqualTo(array1), "Object[] not equal to String[]");
		}

7. Example

Project: AutoTest.Net
Source File: ArrayEqualsFixture.cs
View license
[Test]
		public void ArraysDeclaredAsDifferentTypes()
		{
			string[] array1 = { "one", "two", "three" };
			object[] array2 = { "one", "two", "three" };
			Assert.AreEqual( array1, array2, "String[] not equal to Object[]" );
			Assert.AreEqual( array2, array1, "Object[] not equal to String[]" );
			Expect(array1, EqualTo(array2), "String[] not equal to Object[]");
			Expect(array2, EqualTo(array1), "Object[] not equal to String[]");
		}