public void Equals_ShouldReturnTrue_WhenAnySameAndValueNull() { var matchRule1 = new MatchRule <Value>(true, null); var matchRule2 = new MatchRule <Value>(true, null); matchRule2.ShouldEqual(matchRule1); matchRule1 = new MatchRule <Value>(false, new Value() { Property = "d" }); matchRule2 = new MatchRule <Value>(true, null); matchRule2.ShouldNotEqual(matchRule1); }