NUnit.Framework.Assert.Equals(object, object)

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

9 Examples 7

1. Example

Project: ContinuousTests
Source File: EqualsFixture.cs
View license
[Test,ExpectedException(typeof(AssertionException))]
		public void EqualsThrowsException()
		{
			object o = new object();
			Assert.Equals(o, o);
		}

2. Example

Project: ContinuousTests
Source File: EqualsFixture.cs
View license
[Test,ExpectedException(typeof(AssertionException))]
		public void EqualsThrowsException()
		{
			object o = new object();
			Assert.Equals(o, o);
		}

3. Example

Project: ContinuousTests
Source File: EqualsFixture.cs
View license
[Test,ExpectedException(typeof(AssertionException))]
		public void EqualsThrowsException()
		{
			object o = new object();
			Assert.Equals(o, o);
		}

4. Example

Project: nunitlite
Source File: EqualsFixture.cs
View license
[Test,ExpectedException(typeof(InvalidOperationException))]
		public void EqualsThrowsException()
		{
			object o = new object();
			Assert.Equals(o, o);
		}

5. Example

Project: AutoTest.Net
Source File: EqualsFixture.cs
View license
[Test,ExpectedException(typeof(AssertionException))]
		public void EqualsThrowsException()
		{
			object o = new object();
			Assert.Equals(o, o);
		}

6. Example

Project: AutoTest.Net
Source File: EqualsFixture.cs
View license
[Test,ExpectedException(typeof(AssertionException))]
		public void EqualsThrowsException()
		{
			object o = new object();
			Assert.Equals(o, o);
		}

7. Example

Project: AutoTest.Net
Source File: EqualsFixture.cs
View license
[Test,ExpectedException(typeof(AssertionException))]
		public void EqualsThrowsException()
		{
			object o = new object();
			Assert.Equals(o, o);
		}

8. Example

Project: nunit
Source File: AssertEqualsTests.cs
View license
[Test]
        public void EqualsThrowsException()
        {
            object o = new object();
            Assert.Throws<InvalidOperationException>(() => Assert.Equals(o, o));
        }

9. Example

Project: nunit
Source File: AssertEqualsTests.cs
View license
[Test]
        public void EqualsFailsWhenUsed()
        {
            var ex = Assert.Throws<InvalidOperationException>(() => Assert.Equals(string.Empty, string.Empty));
            Assert.That(ex.Message, Does.StartWith("Assert.Equals should not be used for Assertions"));
        }