public void comparing_two_instances_of_different_classes_that_have_the_same_public_property_where_both_instances_have_the_same_value_for_that_property() { var obj1 = new TestClass1 { Value1 = 1 }; var obj2 = new TestClass2 { Value1 = 1 }; obj1.should_be_equal_to( obj2 ); }
public void comparing_two_instances_of_different_classes_that_have_the_same_public_property_where_the_values_for_that_property_differ() { var obj1 = new TestClass1 { Value1 = 1 }; var obj2 = new TestClass2 { Value1 = 2 }; Assert.Throws< AssertionException >( () => obj1.should_be_equal_to( obj2 ) ); }