mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 03:16:11 +00:00
Unused "using" directive was removed.
Redundant collection list initializers were removed.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -61,7 +60,7 @@ namespace Octokit.Tests.Clients
|
||||
[Fact]
|
||||
public async Task ReturnsContentsByRef()
|
||||
{
|
||||
List<RepositoryContent> result = new List<RepositoryContent>() { new RepositoryContent() { } };
|
||||
List<RepositoryContent> result = new List<RepositoryContent> { new RepositoryContent() };
|
||||
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
connection.GetAll<RepositoryContent>(Args.Uri).Returns(Task.FromResult(result.AsReadOnly() as IReadOnlyList<RepositoryContent>));
|
||||
@@ -77,7 +76,7 @@ namespace Octokit.Tests.Clients
|
||||
[Fact]
|
||||
public async Task ReturnsContents()
|
||||
{
|
||||
List<RepositoryContent> result = new List<RepositoryContent>() { new RepositoryContent() { } };
|
||||
List<RepositoryContent> result = new List<RepositoryContent> { new RepositoryContent() };
|
||||
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
connection.GetAll<RepositoryContent>(Args.Uri).Returns(Task.FromResult(result.AsReadOnly() as IReadOnlyList<RepositoryContent>));
|
||||
|
||||
Reference in New Issue
Block a user