Пример #1
0
 public void TestSeek()
 {
     using (var stream = new SmtpStream(new DummyNetworkStream(), new NullProtocolLogger())) {
         Assert.Throws <NotSupportedException> (() => stream.Seek(0, SeekOrigin.Begin));
         Assert.Throws <NotSupportedException> (() => stream.Position = 500);
         Assert.AreEqual(0, stream.Position);
         Assert.AreEqual(0, stream.Length);
     }
 }