public void NoMatchPropertyWithNoCamelCaseBackField() { var prop = typeof(A).GetProperty("BProperty"); var p = new PropertyToFieldCamelCasePattern(); p.Match(prop).Should().Be.False(); }
public void MatchPropertyWithCamelCaseBackField() { var prop = typeof (A).GetProperty("AProperty"); var p = new PropertyToFieldCamelCasePattern(); p.Match(prop).Should().Be.True(); }