mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
Fixing and adding unit tests for UserEmails...
Client and ObservableUserEmailsClient
This commit is contained in:
@@ -54,10 +54,8 @@ namespace Octokit.Tests
|
||||
{
|
||||
var client = CreateFixtureWithNonReactiveClient();
|
||||
|
||||
Assert.Throws<ArgumentNullException>(
|
||||
() => client.Add(null));
|
||||
Assert.Throws<ArgumentException>(
|
||||
() => client.Add("octo@github.com", null));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Add(null));
|
||||
Assert.Throws<ArgumentException>(() => client.Add("octo@github.com", null));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -65,10 +63,8 @@ namespace Octokit.Tests
|
||||
{
|
||||
var client = CreateFixtureWithNonReactiveClient();
|
||||
|
||||
Assert.Throws<ArgumentException>(
|
||||
() => client.Add(""));
|
||||
Assert.Throws<ArgumentException>(
|
||||
() => client.Add("octo@github.com", ""));
|
||||
Assert.Throws<ArgumentException>(() => client.Add(""));
|
||||
Assert.Throws<ArgumentException>(() => client.Add("octo@github.com", ""));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user