summaryrefslogtreecommitdiffstats
path: root/SendGrid/Tests/Transport/TestErrorChecker.cs
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-06-14 10:22:39 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-06-14 10:22:39 -0700
commit1e2111f09142552d7dde4e18f116835dec91ed86 (patch)
tree1de111c549454450ce5a45aa129726132db217b5 /SendGrid/Tests/Transport/TestErrorChecker.cs
parent5ee89f857c09d79e507483bd807727bb6c4d7057 (diff)
parent2e52cfb07decb924a961b5c75ece1b9e79ab973c (diff)
downloadsendgrid-csharp-1e2111f09142552d7dde4e18f116835dec91ed86.zip
sendgrid-csharp-1e2111f09142552d7dde4e18f116835dec91ed86.tar.gz
sendgrid-csharp-1e2111f09142552d7dde4e18f116835dec91ed86.tar.bz2
Merge branch 'v3release'v7.0.1v7.0.0
Diffstat (limited to 'SendGrid/Tests/Transport/TestErrorChecker.cs')
-rw-r--r--SendGrid/Tests/Transport/TestErrorChecker.cs34
1 files changed, 0 insertions, 34 deletions
diff --git a/SendGrid/Tests/Transport/TestErrorChecker.cs b/SendGrid/Tests/Transport/TestErrorChecker.cs
deleted file mode 100644
index f178064..0000000
--- a/SendGrid/Tests/Transport/TestErrorChecker.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-namespace Transport
-{
- #region Using Directives
-
- using System;
- using System.Net;
- using System.Net.Http;
-
- using Exceptions;
-
- using NUnit.Framework;
-
- using SendGrid;
-
- #endregion
-
- [TestFixture]
- public class TestErrorChecker
- {
- private const string BadUsernameOrPasswordResponseMessage = "<result><message>error</message><errors><error>Bad username / password</error></errors></result>";
-
- [Test]
- [ExpectedException(typeof(InvalidApiRequestException))]
- public void WhenHttpResponseContainsBadUserErrorItIsDetectedAndAInvalidApiRequestIsThrown()
- {
- var response = new HttpResponseMessage(HttpStatusCode.BadRequest)
- {
- Content = new StringContent(BadUsernameOrPasswordResponseMessage)
- };
-
- ErrorChecker.CheckForErrors(response);
- }
- }
-} \ No newline at end of file