public void TestSerializeArray() { byte[] array = TestRandomizer.GetBytes(); string xml = xstream.ToXml(array); byte[] reverse = xstream.FromXml(xml) as byte[]; Assert.IsNotNull(reverse); Assert.AreEqual(array, reverse); }
protected override object GetValue() { return(TestRandomizer.GetBytes()[0]); }