public void TestSerializeArray()
        {
            char[] array = { TestRandomizer.GetChar(), TestRandomizer.GetChar(), TestRandomizer.GetChar(),
                             TestRandomizer.GetChar(), TestRandomizer.GetChar(), TestRandomizer.GetChar() };

            string xml = xstream.ToXml(array);

            char[] reverse = xstream.FromXml(xml) as char[];

            Assert.IsNotNull(reverse);
            Assert.AreEqual(array, reverse);
        }
        public void TestSerialize()
        {
            StringBuilder sbuf = new StringBuilder(TestRandomizer.GetString());

            sbuf.Append(TestRandomizer.GetChar());
            sbuf.Append(TestRandomizer.GetDouble());

            string        xml = xstream.ToXml(sbuf);
            StringBuilder rev = xstream.FromXml(xml) as StringBuilder;

            Assert.IsNotNull(rev);
            Assert.AreEqual(sbuf.ToString(), rev.ToString());
        }
 protected override object GetValue()
 {
     return(TestRandomizer.GetChar());
 }