public void TestRead() { using (var stream = new SmtpStream(new DummyNetworkStream(), new NullProtocolLogger())) { var buffer = new byte[16]; Assert.Throws <NotImplementedException> (() => stream.Read(buffer, 0, buffer.Length)); Assert.ThrowsAsync <NotImplementedException> (async() => await stream.ReadAsync(buffer, 0, buffer.Length)); } }