public void should_not_be_equal_if_kinds_are_not_equal([Values(null, "kind")] object?kind, [ValueSource(nameof(all_possible_tags))] object?tag) { if (kind is null && tag is null) { Assert.Ignore("Impossible arguments combination"); } var target1 = new UnitPattern(kind, tag); var target2 = new UnitPattern("fixed kind", tag); // fix kind value // --assert target1.Equals(target2).Should().BeFalse(); target2.Equals(target1).Should().BeFalse(); }
public void should_not_be_equal_if_tags_are_not_equal([Values(null, "kind")] object?kind, [Values(null, "tag")] string?tag) { if (kind is null && tag is null) { Assert.Ignore("Impossible arguments combination"); } var target1 = new UnitPattern(kind, tag); var target2 = new UnitPattern(kind, SpecialTag.Any); // fix tag value // --assert target1.Equals(target2).Should().BeFalse(); target2.Equals(target1).Should().BeFalse(); }