public void can_read_today_as_datetime()
 {
     var constant = new ConstantType("00:00:00, date");
     constant.Read(null).Should().Be(DateTime.Today);
 }
 public void can_read_number_as_int()
 {
     var constant = new ConstantType("2, int");
     constant.Read(null).Should().Be(2);
 }
 public void can_read_date_as_string()
 {
     var constant = new ConstantType("2010-1-15");
     constant.Read(null).Should().Be("2010-1-15");
 }
 public void can_read_number_as_decimal()
 {
     var constant = new ConstantType("2, decimal");
     constant.Read(null).Should().Be(2m);
 }
 public void can_read_date_as_datetime()
 {
     var constant = new ConstantType("2010-1-15, date");
     constant.Read(null).Should().Be(new DateTime(2010, 1, 15));
 }