some cleanup in this test attribute

This commit is contained in:
Brendan Forster
2015-01-02 14:30:31 +09:30
parent 790c07da30
commit 0d53f759ac
@@ -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<IXunitTestCase> Discover(ITestMethod testMethod, IAttributeInfo factAttribute)
{
if (Helper.Credentials == null)
{
return Enumerable.Empty<IXunitTestCase>();
}
else
{
return new [] { new XunitTestCase(testMethod) };
}
return Helper.Credentials == null
? Enumerable.Empty<IXunitTestCase>()
: new [] { new XunitTestCase(testMethod) };
}
}
[XunitTestCaseDiscoverer("Octokit.Tests.Integration.IntegrationTestDiscoverer", "Octokit.Tests.Integration")]
public class IntegrationTestAttribute : FactAttribute
{