public void should_match_any_kind( [Values(null, "kind", typeof(string))] object?kind, [ValueSource(typeof(Util), nameof(Util.all_special_tags))] SpecialTag tag) { // --arrange var unitId = new UnitId(kind, tag); var target = new IsServiceUnit(); // --assert target.Matches(unitId).Should().BeTrue(); }
public void should_not_match_any_kind_if_tag_is_not_special( [Values(null, "kind", typeof(string))] object?kind, [Values(null, "tag")] object?tag) { if (kind is null && tag is null) { Assert.Ignore("Impossible argument combination"); } // --arrange var unitId = new UnitId(kind, tag); var target = new IsServiceUnit(); // --assert target.Matches(unitId).Should().BeFalse(); }