Пример #1
0
        public void IdFieldMappingResolveValueZero()
        {
            IdFieldMapping fieldMapping = new IdFieldMapping("Id");

            Model model = new Model {
                Id = 0
            };

            ModelProperties <Model> modelProperties = new ModelProperties <Model>();

            string value;

            Assert.That(fieldMapping.TryResolveValue(modelProperties, model, out value), Is.False);
            Assert.That(value, Is.EqualTo(null));
        }
Пример #2
0
        public void CanWrite()
        {
            IdFieldMapping fieldMapping = new IdFieldMapping("Id");

            Assert.That(fieldMapping.CanWrite, Is.False);
        }