diff --git a/Octokit.Tests.Integration/Helpers/IntegrationTestAttribute.cs b/Octokit.Tests.Integration/Helpers/IntegrationTestAttribute.cs index 5d89feed..2836a787 100644 --- a/Octokit.Tests.Integration/Helpers/IntegrationTestAttribute.cs +++ b/Octokit.Tests.Integration/Helpers/IntegrationTestAttribute.cs @@ -1,9 +1,5 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; +using System.Collections.Generic; using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Xunit; using Xunit.Abstractions; using Xunit.Sdk; @@ -14,18 +10,12 @@ namespace Octokit.Tests.Integration { public IEnumerable Discover(ITestMethod testMethod, IAttributeInfo factAttribute) { - if (Helper.Credentials == null) - { - return Enumerable.Empty(); - } - else - { - return new [] { new XunitTestCase(testMethod) }; - } + return Helper.Credentials == null + ? Enumerable.Empty() + : new [] { new XunitTestCase(testMethod) }; } } - [XunitTestCaseDiscoverer("Octokit.Tests.Integration.IntegrationTestDiscoverer", "Octokit.Tests.Integration")] public class IntegrationTestAttribute : FactAttribute {