add exception handling

This commit is contained in:
2013-08-28 00:09:55 +02:00
parent 2d39955208
commit 5a2b1ef153
8 changed files with 151 additions and 91 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ namespace UptimeSharp.Tests
[Fact]
public void AddInvalidAlertWithTypeSms()
{
Assert.Throws<APIException>(() =>
Assert.Throws<UptimeSharpException>(() =>
{
client.AddAlert(Models.AlertType.SMS, "+436601289172");
});
@@ -42,7 +42,7 @@ namespace UptimeSharp.Tests
[Fact]
public void AddInvalidAlertWithTypeTwitter()
{
Assert.Throws<APIException>(() =>
Assert.Throws<UptimeSharpException>(() =>
{
client.AddAlert(Models.AlertType.Twitter, "artistandsocial");
});