public void TestInvalidHeaders(string entity, MimeError expectedError) { MimeException error; error = AssertEx.Throws <MimeException>(() => { Header[] headers = MimeParser.ReadHeaders(entity).ToArray(); string value = headers[0].Value; }); Assert.True(error.Error == expectedError); }
public void TestInvalidHeaders(string entity, MimeError expectedError) { MimeException error; error = AssertEx.Throws<MimeException>(() => { Header[] headers = MimeParser.ReadHeaders(entity).ToArray(); string value = headers[0].Value; }); Assert.True(error.Error == expectedError); }