示例#1
0
 public void Should_Serialize_FirstComponent()
 {
     var field = new DR
     {
         RangeStartDateTime = new TS { Time = new DTM(2015, 9, 6, 9, 42, 12) }
     };
     Assert.AreEqual(First, field.ToString());
 }
示例#2
0
 public void Should_Serialize_AllComponents()
 {
     var field = new DR
     {
         RangeStartDateTime = new TS
         {
             Time = new DTM(2015, 9, 6, 9, 42, 12),
             DegreeOfPrecision = new ID { Value = "DR.RangeStartDateTime.DegreeOfPrecision" }
         },
         RangeEndDateTime = new TS
         {
             Time = new DTM(2015, 9, 7, 23, 59, 59, 999, 9, -4),
             DegreeOfPrecision = new ID { Value = "DR.RangeEndDateTime.DegreeOfPrecision" }
         }
     };
     Assert.AreEqual(All, field.ToString());
 }
示例#3
0
 public void Should_Serialize_LastComponent()
 {
     var field = new DR
     {
         RangeEndDateTime = new TS
         {
             DegreeOfPrecision = new ID { Value = "DR.RangeEndDateTime.DegreeOfPrecision" }
         }
     };
     Assert.AreEqual(Last, field.ToString());
 }