public void comparing_two_instances_with_an_array_property_each_containing_a_differing_array_of_values() { var obj1 = new Test_ClassWithArrayProperty { Values = new[] { 1, 2, 3, 4 } }; var obj2 = new Test_ClassWithArrayProperty { Values = new[] { 5, 6, 7, 8 } }; Assert.Throws< AssertionException >( () => obj1.should_be_equal_to( obj2 ) ); }
public void comparing_two_instances_with_an_array_property_where_both_properties_contain_an_empty_array_of_differing_sizes() { var obj1 = new Test_ClassWithArrayProperty { Values = new int[1] }; var obj2 = new Test_ClassWithArrayProperty { Values = new int[5] }; Assert.Throws< AssertionException >( () => obj1.should_be_equal_to( obj2 ) ); }
public void comparing_two_instances_with_an_array_property_where_both_properties_contain_a_null_array() { var obj1 = new Test_ClassWithArrayProperty(); var obj2 = new Test_ClassWithArrayProperty(); obj1.should_be_equal_to( obj2 ); }
public void comparing_two_instances_with_an_array_property_where_both_properties_contain_an_empty_array_of_the_same_size() { var obj1 = new Test_ClassWithArrayProperty { Values = new int[1] }; var obj2 = new Test_ClassWithArrayProperty { Values = new int[1] }; obj1.should_be_equal_to( obj2 ); }
public void comparing_two_instances_with_an_array_property_containing_the_same_array_of_values() { var obj1 = new Test_ClassWithArrayProperty { Values = new[] { 1, 2, 3, 4 } }; var obj2 = new Test_ClassWithArrayProperty { Values = new[] { 1, 2, 3, 4 } }; obj1.should_be_equal_to( obj2 ); }