Example #1
0
        public void NegativeRealValueCanBeParsed()
        {
            var value = SgfRealValue.Parse("-12.13");

            Assert.AreEqual(-12.13m, value.Value);
        }
Example #2
0
 public void EmptyValueCantBeParsed()
 {
     var value = SgfRealValue.Parse("");
 }
Example #3
0
        public void NegativeIntegerValueCanBeParsed()
        {
            var value = SgfRealValue.Parse("-12");

            Assert.AreEqual(-12, value.Value);
        }
Example #4
0
        public void PositiveIntegerValueCanBeParsed()
        {
            var value = SgfRealValue.Parse("+12");

            Assert.AreEqual(12, value.Value);
        }
Example #5
0
        public void SimpleRealValueCanBeParsed()
        {
            var value = SgfRealValue.Parse("12.13");

            Assert.AreEqual(12.13m, value.Value);
        }
Example #6
0
        public void SimpleIntegerValueCanBeParsed()
        {
            var value = SgfRealValue.Parse("12");

            Assert.AreEqual(12, value.Value);
        }
Example #7
0
 public void NullRealValueCantBeParsed()
 {
     SgfRealValue.Parse(null);
 }