public void TestNullStream() { Stream s = null; Assert.Throws<ArgumentNullException>(() => new Attachment(s, "application/octet-stream")); }