public void Distinguishes_ignored_properties() { // Arrange var convention = new DefaultPropertyScanningConvention(); var titlePi = typeof(Post).GetProperty("Title"); var internalNumberPi = typeof(Post).GetProperty("InternalNumber"); // Act var shouldIgnoreTitle = convention.ShouldIgnore(titlePi); var shouldIgnoreInternalNumber = convention.ShouldIgnore(internalNumberPi); // Assert shouldIgnoreTitle.ShouldBeFalse(); shouldIgnoreInternalNumber.ShouldBeTrue(); }