public void WhenGenericCollectionThenMatch() { var member = ForClass <MyClass> .Property(x => x.Collection); var pattern = new UseSetWhenGenericCollectionPattern(); pattern.Match(member).Should().Be.True(); }
public void WhenArrayThenNoMatch() { var member = ForClass <MyClass> .Property(x => x.Array); var pattern = new UseSetWhenGenericCollectionPattern(); pattern.Match(member).Should().Be.False(); }