From 0d53f759acee33859555de3b50e45202b88129f6 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Fri, 2 Jan 2015 14:30:31 +0930 Subject: [PATCH] some cleanup in this test attribute --- .../Helpers/IntegrationTestAttribute.cs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) 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 {