mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 04:56:29 +00:00
fix expected exceptions
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Get(null, "name", 1).ToTask());
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Get("owner", null, 1).ToTask());
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.Get(null, "", 1).ToTask());
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Get(null, "", 1).ToTask());
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.Get("", null, 1).ToTask());
|
||||
}
|
||||
}
|
||||
@@ -270,7 +270,7 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Merged(null, "name", 1));
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Merged("owner", null, 1));
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.Merged(null, "", 1));
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Merged(null, "", 1));
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.Merged("", null, 1));
|
||||
}
|
||||
}
|
||||
@@ -309,7 +309,7 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Commits(null, "name", 1));
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Commits("owner", null, 1));
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.Commits(null, "", 1));
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Commits(null, "", 1));
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.Commits("", null, 1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user