public void WhenStringThenNoMatch() { var member = ForClass<MyClass>.Property(x => x.StringProp); var pattern = new UseBagWhenGenericListPattern(); pattern.Match(member).Should().Be.False(); }
public void WhenListThenMatch() { var member = ForClass<MyClass>.Property(x => x.List); var pattern = new UseBagWhenGenericListPattern(); pattern.Match(member).Should().Be.True(); }