public PrimitiveObject() { _Int = TestRandomizer.GetInt(); _Long = TestRandomizer.GetLong(); _Bool = TestRandomizer.GetBool(); _Short = TestRandomizer.GetShort(); _String = TestRandomizer.GetString(); }
public void TestSerialize() { TimeSpan span = TimeSpan.FromTicks(TestRandomizer.GetLong()); span.Add(new TimeSpan(10, 3, 27, 59)); string xml = xstream.ToXml(span); TimeSpan reverse = (TimeSpan)xstream.FromXml(xml); Assert.AreEqual(span, reverse); }
protected override object GetValue() { return(TestRandomizer.GetLong()); }