[Test] // bug #411115 public void Deserialize_Stream_NonSeekable () { string s1 = "Hello world"; NonSeekableStream ns = new NonSeekableStream (); LosFormatter lf = new LosFormatter (); lf.Serialize (ns, s1); ns.Reset (); string s2 = lf.Deserialize (ns) as string; Assert.AreEqual (s1, s2); }
[Test] // bug #411115 public void Deserialize_Stream_NonSeekable() { string s1 = "Hello world"; NonSeekableStream ns = new NonSeekableStream(); LosFormatter lf = new LosFormatter(); lf.Serialize(ns, s1); ns.Reset(); string s2 = lf.Deserialize(ns) as string; Assert.AreEqual(s1, s2); }