public void TestEqual_Obj_NoParams() { // Test pass Object obj = new Dummy(); Assert.Equal(obj, obj); // Test fail Assert.ExpectException(new TestException("Expected " + obj.GetType() + ", Got 3")); Assert.Equal(obj, 3); }
public void TestEqual_Obj_Null_NoParams() { // Test pass Object obj = new Dummy(); Assert.Equal((object)null, null); // Test fail Assert.ExpectException(new TestException("Expected , Got " + obj.GetType())); Assert.Equal(null, obj); }
public void TestEqual_Obj() { // Test pass Object obj = new Dummy(); Assert.Equal(obj, obj, null); // Test fail Assert.ExpectException(new TestException("Failed")); Assert.Equal(obj, 3, "Failed"); }
public void TestAddAll() { Dummy test = new Dummy(); m_suite.AddAll(test); }