the other tests no wpass

This commit is contained in:
Brendan Forster
2014-12-17 20:16:02 +09:30
parent 2b2fa1c5e3
commit 491e54d26e
7 changed files with 88 additions and 38 deletions
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
using Xunit.Sdk;
namespace Octokit.Tests.Integration
{
public class IntegrationTestDiscoverer : IXunitTestCaseDiscoverer
{
public IEnumerable<IXunitTestCase> Discover(ITestMethod testMethod, IAttributeInfo factAttribute)
{
yield return new IntegrationTestCase(testMethod);
}
}
[XunitTestCaseDiscoverer("Octokit.Tests.Integration.IntegrationTestDiscoverer", "Octokit.Tests.Integration")]
public class IntegrationTestAttribute : FactAttribute
{
}
[Serializable]
public class IntegrationTestCase : XunitTestCase
{
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Called by the de-serializer", true)]
public IntegrationTestCase() { }
public IntegrationTestCase(ITestMethod testMethod)
: base(testMethod, testMethodArguments: null)
{
}
}
}