public void should_return_false_when_only_one_has_properties() { var command1 = new SeasonSearchCommand(); var command2 = new SeasonSearchCommand { SeriesId = 2, SeasonNumber = 2 }; CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeFalse(); }
public void should_return_true_when_multiple_properties_match() { var command1 = new SeasonSearchCommand { SeriesId = 1, SeasonNumber = 1 }; var command2 = new SeasonSearchCommand { SeriesId = 1, SeasonNumber = 1 }; CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeTrue(); }