public PrimitiveObject()
 {
     _Int    = TestRandomizer.GetInt();
     _Long   = TestRandomizer.GetLong();
     _Bool   = TestRandomizer.GetBool();
     _Short  = TestRandomizer.GetShort();
     _String = TestRandomizer.GetString();
 }
예제 #2
0
        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);
        }
예제 #3
0
 protected override object GetValue()
 {
     return(TestRandomizer.GetShort());
 }