summaryrefslogtreecommitdiffstats
path: root/SendGrid/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'SendGrid/Tests')
-rwxr-xr-xSendGrid/Tests/TestSendgridMessageSetup.cs1
-rwxr-xr-xSendGrid/Tests/Transport/TestSMTP.cs6
2 files changed, 3 insertions, 4 deletions
diff --git a/SendGrid/Tests/TestSendgridMessageSetup.cs b/SendGrid/Tests/TestSendgridMessageSetup.cs
index ea57eb7..5719d04 100755
--- a/SendGrid/Tests/TestSendgridMessageSetup.cs
+++ b/SendGrid/Tests/TestSendgridMessageSetup.cs
@@ -172,7 +172,6 @@ namespace Tests
var foo = new Mock<IHeader>();
var sg = new SendGrid(foo.Object);
- var data = new Attachment("pnunit.framework.dll", MediaTypeNames.Application.Octet);
sg.AddAttachment("pnunit.framework.dll");
sg.AddAttachment("pnunit.framework.dll");
//Assert.AreEqual(data.ContentStream, sg.Attachments.First().ContentStream, "Attach via path");
diff --git a/SendGrid/Tests/Transport/TestSMTP.cs b/SendGrid/Tests/Transport/TestSMTP.cs
index 3c17008..24c1a47 100755
--- a/SendGrid/Tests/Transport/TestSMTP.cs
+++ b/SendGrid/Tests/Transport/TestSMTP.cs
@@ -38,14 +38,14 @@ namespace Tests.Transport
mock.SetupProperty(foo => foo.EnableSsl);
var client = mock.Object;
var credentials = new NetworkCredential("username", "password");
- var test = SMTP.GetInstance(client, credentials);
+ SMTP.GetInstance(client, credentials);
mock.Verify(foo => foo.EnableSsl, Times.Never());
mock = new Mock<SMTP.ISmtpClient>();
mock.SetupProperty(foo => foo.EnableSsl);
client = mock.Object;
credentials = new NetworkCredential("username", "password");
- test = SMTP.GetInstance(client, credentials, port:SMTP.SslPort);
+ SMTP.GetInstance(client, credentials, port:SMTP.SslPort);
mock.VerifySet(foo => foo.EnableSsl = true);
mock = new Mock<SMTP.ISmtpClient>();
@@ -54,7 +54,7 @@ namespace Tests.Transport
credentials = new NetworkCredential("username", "password");
try
{
- test = SMTP.GetInstance(client, credentials, port: SMTP.TlsPort);
+ SMTP.GetInstance(client, credentials, port: SMTP.TlsPort);
Assert.Fail("should have thrown an unsupported port exception");
}
catch (NotSupportedException ex)