mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +00:00
autofix tests based on feedback from xunit analyzers (#1997)
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
Assert.NotEmpty(keys);
|
||||
|
||||
var first = keys[0];
|
||||
Assert.NotNull(first.Id);
|
||||
Assert.NotEqual(default, first.Id);
|
||||
Assert.NotNull(first.Key);
|
||||
Assert.NotNull(first.Title);
|
||||
Assert.NotNull(first.Url);
|
||||
@@ -34,7 +34,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
Assert.NotEmpty(keys);
|
||||
|
||||
var first = keys[0];
|
||||
Assert.NotNull(first.Id);
|
||||
Assert.NotEqual(default, first.Id);
|
||||
Assert.NotNull(first.Key);
|
||||
Assert.Null(first.Title);
|
||||
Assert.Null(first.Url);
|
||||
@@ -75,7 +75,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
|
||||
// Verify key no longer exists
|
||||
var keys = await github.User.GitSshKey.GetAllForCurrent();
|
||||
Assert.False(keys.Any(k => k.Title == keyTitle && k.Key == keyData));
|
||||
Assert.DoesNotContain(keys, k => k.Title == keyTitle && k.Key == keyData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user