public void TestApply(bool value) { var subject = new IgnoreIfDefaultConvention(value); var classMap = new BsonClassMap<TestClass>(); var memberMap = classMap.MapMember(x => x.Id); subject.Apply(memberMap); Assert.AreEqual(value, memberMap.IgnoreIfDefault); }