public void TestCase_DoubleValue() { var d = 1.2; var value = new DoubleValue(); Assert.AreEqual(PropertyDefinitionType.Data, value.PropertyDefType); Assert.AreEqual(PropertyValueType.Double, value.Type); Assert.True(value.IsNull); Assert.Throws <Exception>(() => { var v = value.Value; }); Assert.Throws <Exception>(() => { var v = value.ValueAsString(); }); value.Value = d; Assert.NotNull(value.Value); Assert.AreEqual(d, value.Value); Assert.AreEqual("1.2", value.ValueAsString()); Assert.False(value.IsNull); value = new DoubleValue(d); Assert.False(value.IsNull); Assert.NotNull(value.Value); Assert.AreEqual(d, value.Value); value.SetNull(); Assert.True(value.IsNull); Assert.Throws <Exception>(() => { var v = value.Value; }); }