コード例 #1
0
        public void CanMapFieldDoubleValue()
        {
            ModelFieldMapping       fieldMapping    = new ModelFieldMapping("DoubleValue", typeof(double));
            ModelProperties <Model> modelProperties = new ModelProperties <Model>();
            string message;

            Assert.That(fieldMapping.CanMapField(modelProperties, out message), Is.True);
            Assert.That(message, Is.Null.Or.Empty);
        }
コード例 #2
0
        public void CanMapFieldDouble()
        {
            ModelFieldMapping       fieldMapping    = new ModelFieldMapping("Value", typeof(double));
            ModelProperties <Model> modelProperties = new ModelProperties <Model>();
            string message;

            Assert.That(fieldMapping.CanMapField(modelProperties, out message), Is.False);
            Assert.That(message, Is.StringContaining("'Value'").And.StringContaining("Int32").And.StringContaining("Double"));
        }