public PrimitiveObject() { _Int = TestRandomizer.GetInt(); _Long = TestRandomizer.GetLong(); _Bool = TestRandomizer.GetBool(); _Short = TestRandomizer.GetShort(); _String = TestRandomizer.GetString(); }
public void TestSerialize() { DateTime now = DateTime.Now; now.AddSeconds(TestRandomizer.GetDouble()); now.AddDays(TestRandomizer.GetShort()); string xml = xstream.ToXml(now); DateTime reverse = (DateTime)xstream.FromXml(xml); Assert.AreEqual(now, reverse); }
protected override object GetValue() { return(TestRandomizer.GetShort()); }