public void When_all_characters_are_the_same_except_punctuation_then_should_match_property( Property agencyProperty, Property databaseProperty, PunctuationIgnorantPropertyMatcher sut) { agencyProperty.Name = "*Super*-High! APARTMENTS (Sydney)"; agencyProperty.Address = "32 Sir John-Young Crescent, Sydney, NSW"; databaseProperty.Name = "Super High Apartments, Sydney"; databaseProperty.Address = "32 Sir John Young Crescent, Sydney NSW"; sut.IsMatch(agencyProperty, databaseProperty).ShouldBeTrue(); }
public void When_some_words_are_different_then_should_NOT_match_property( Property agencyProperty, Property databaseProperty, PunctuationIgnorantPropertyMatcher sut) { agencyProperty.Name = "*Fairly*-High! APARTMENTS (Sydney)"; agencyProperty.Address = "42 Mr John-Young Crescent, Sydney, NSW"; databaseProperty.Name = "Super High Apartments, Sydney"; databaseProperty.Address = "32 Sir John Young Crescent, Sydney NSW"; sut.IsMatch(agencyProperty, databaseProperty).ShouldBeFalse(); }
public void Should_throw_argument_null_exception_for_null_database_property( Property agencyProperty, PunctuationIgnorantPropertyMatcher sut) { new Action(() => sut.IsMatch(agencyProperty, null)).ShouldThrow<ArgumentNullException>(); }