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()); }
public void Should_Serialize_LastComponent() { var field = new DR { RangeEndDateTime = new TS { DegreeOfPrecision = new ID { Value = "DR.RangeEndDateTime.DegreeOfPrecision" } } }; Assert.AreEqual(Last, field.ToString()); }
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()); }