Пример #1
0
 public void Should_Serialize_FirstComponent()
 {
     var field = new TS
     {
         Time = new DTM(2015, 9, 6, 9, 42, 12),
     };
     Assert.AreEqual("20150906094212", field.ToString());
 }
Пример #2
0
 public void Should_Serialize_LastComponent()
 {
     var field = new TS
     {
         DegreeOfPrecision = new ID { Value = "TS.DegreeOfPrecision" }
     };
     Assert.AreEqual("^TS.DegreeOfPrecision", field.ToString());
 }
Пример #3
0
 public void Should_Serialize_AllComponents()
 {
     var field = new TS
     {
         Time = new DTM(2015, 9, 6, 9, 42, 12),
         DegreeOfPrecision = new ID { Value = "TS.DegreeOfPrecision" }
     };
     Assert.AreEqual("20150906094212^TS.DegreeOfPrecision", field.ToString());
 }