コード例 #1
0
 public void Should_flag_uninitialized_properties_on_actual_object_as_unequal()
 {
     _actual = new Customer {
         Name = ExpectedName
     };
     _expected = new { Name = ExpectedName, PhoneNumber = "1234567890" }.ToExpectedObject();
     _expected.ShouldEqual(_actual);
 }
コード例 #2
0
 public void Should_return_the_expected_customer()
 {
     _expected.ShouldEqual(_actual);
 }
コード例 #3
0
 public void Should_provide_the_expected_customer()
 {
     _expected.ShouldEqual(_actual);
 }
コード例 #4
0
 public void Should_compare_all_properties_when_testing_for_equality()
 {
     _actual.Name         = expectedName;
     _actual.Address.City = expectedCity;
     _expected.ShouldEqual(_actual);
 }