public void CanSetOptimisticLock() { var mapdoc = new HbmMapping(); var component = new HbmDynamicComponent(); var mapper = new DynamicComponentMapper(component, For<Person>.Property(p => p.Info), mapdoc); mapper.OptimisticLock(false); Assert.That(component.OptimisticLock, Is.False); }