mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 19:46:07 +00:00
some cleanup in this test attribute
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user