コード例 #1
0
 public void TestSetLength()
 {
     using (var stream = new SmtpStream(new DummyNetworkStream(), new NullProtocolLogger())) {
         Assert.Throws <NotSupportedException> (() => stream.SetLength(500));
     }
 }