public void TSInvalidDateValidationTest() { TS test = new TS(); test.Value = "200901011400"; Assert.IsFalse(TS.IsValidDateFlavor(test)); }
public void TSValidDateValidationTest() { TS test = new TS(); test.Value = "20090101"; Assert.IsTrue(TS.IsValidDateFlavor(test)); }
public void TSExample30Test06() { TS foo = new TS(); foo.Value = "2001"; foo.NullFlavor = null; foo.DateValuePrecision = DatePrecision.Day; Assert.IsTrue(TS.IsValidDateFlavor(foo)); }
public void TSExample30Test07() { TS foo = new TS(); foo.Value = "2001"; foo.NullFlavor = null; foo.DateValuePrecision = DatePrecision.Hour; Assert.IsFalse(TS.IsValidDateFlavor(foo)); // testing for valid date flavor using precision of hour }