Move internal classes to public (fixes #51)
This commit is contained in:
Родитель
56af01b2e2
Коммит
075bedaa4a
|
@ -1,25 +1,38 @@
|
|||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using Xunit.Abstractions;
|
||||
using Xunit.Sdk;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ISourceInformation"/>.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
internal class SourceInformation : LongLivedMarshalByRefObject, ISourceInformation, ISerializable
|
||||
public class SourceInformation : LongLivedMarshalByRefObject, ISourceInformation, ISerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SourceInformation"/> class.
|
||||
/// </summary>
|
||||
public SourceInformation() { }
|
||||
|
||||
/// <summary/>
|
||||
protected SourceInformation(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
FileName = info.GetString("FileName");
|
||||
LineNumber = (int?)info.GetValue("LineNumber", typeof(int?));
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public string FileName { get; set; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public int? LineNumber { get; set; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
info.AddValue("FileName", FileName);
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="IAfterTestFinished"/>.
|
||||
/// </summary>
|
||||
internal class AfterTestFinished : TestMessage, IAfterTestFinished
|
||||
public class AfterTestFinished : TestMessage, IAfterTestFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AfterTestFinished"/> class.
|
||||
/// </summary>
|
||||
public AfterTestFinished(ITestCase testCase, string testDisplayName, string attributeName)
|
||||
: base(testCase, testDisplayName)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="IAfterTestStarting"/>.
|
||||
/// </summary>
|
||||
internal class AfterTestStarting : TestMessage, IAfterTestStarting
|
||||
public class AfterTestStarting : TestMessage, IAfterTestStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AfterTestStarting"/> class.
|
||||
/// </summary>
|
||||
public AfterTestStarting(ITestCase testCase, string testDisplayName, string attributeName)
|
||||
: base(testCase, testDisplayName)
|
||||
{
|
||||
|
|
|
@ -2,10 +2,20 @@
|
|||
using System.Linq;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
internal class TestCaseMessage : TestCollectionMessage, ITestCaseMessage
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestCaseMessage"/>.
|
||||
/// </summary>
|
||||
public class TestCaseMessage : TestCollectionMessage, ITestCaseMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestCaseMessage"/> class.
|
||||
/// </summary>
|
||||
public TestCaseMessage(ITestCase testCase)
|
||||
: base(testCase.TestCollection)
|
||||
{
|
||||
|
|
|
@ -2,10 +2,20 @@
|
|||
using System.Linq;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
internal class TestClassMessage : TestCollectionMessage, ITestClassMessage
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestClassMessage"/>.
|
||||
/// </summary>
|
||||
public class TestClassMessage : TestCollectionMessage, ITestClassMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestClassMessage"/> class.
|
||||
/// </summary>
|
||||
public TestClassMessage(ITestCollection testCollection, string className)
|
||||
: base(testCollection)
|
||||
{
|
||||
|
|
|
@ -2,10 +2,20 @@
|
|||
using System.Linq;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
internal class TestCollectionMessage : LongLivedMarshalByRefObject, ITestCollectionMessage
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestCollectionMessage"/>.
|
||||
/// </summary>
|
||||
public class TestCollectionMessage : LongLivedMarshalByRefObject, ITestCollectionMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestCollectionMessage"/> class.
|
||||
/// </summary>
|
||||
public TestCollectionMessage(ITestCollection testCollection)
|
||||
{
|
||||
TestCollection = testCollection;
|
||||
|
|
|
@ -2,10 +2,20 @@
|
|||
using System.Linq;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
internal class TestMessage : TestCaseMessage, ITestMessage
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestMessage"/>.
|
||||
/// </summary>
|
||||
public class TestMessage : TestCaseMessage, ITestMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestMessage"/> class.
|
||||
/// </summary>
|
||||
public TestMessage(ITestCase testCase, string testDisplayName)
|
||||
: base(testCase)
|
||||
{
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
using System;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestResultMessage"/>.
|
||||
/// </summary>
|
||||
internal class TestResultMessage : TestMessage, ITestResultMessage
|
||||
public class TestResultMessage : TestMessage, ITestResultMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestResultMessage"/> class.
|
||||
/// </summary>
|
||||
public TestResultMessage(ITestCase testCase, string testDisplayName, decimal executionTime, string output)
|
||||
: base(testCase, testDisplayName)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="IBeforeTestFinished"/>.
|
||||
/// </summary>
|
||||
internal class BeforeTestFinished : TestMessage, IBeforeTestFinished
|
||||
public class BeforeTestFinished : TestMessage, IBeforeTestFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BeforeTestFinished"/> class.
|
||||
/// </summary>
|
||||
public BeforeTestFinished(ITestCase testCase, string testDisplayName, string attributeName)
|
||||
: base(testCase, testDisplayName)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="IBeforeTestStarting"/>.
|
||||
/// </summary>
|
||||
internal class BeforeTestStarting : TestMessage, IBeforeTestStarting
|
||||
public class BeforeTestStarting : TestMessage, IBeforeTestStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BeforeTestStarting"/> class.
|
||||
/// </summary>
|
||||
public BeforeTestStarting(ITestCase testCase, string testDisplayName, string attributeName)
|
||||
: base(testCase, testDisplayName)
|
||||
{
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
using System.Collections.Generic;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="IDiscoveryCompleteMessage"/>.
|
||||
/// </summary>
|
||||
internal class DiscoveryCompleteMessage : LongLivedMarshalByRefObject, IDiscoveryCompleteMessage
|
||||
public class DiscoveryCompleteMessage : LongLivedMarshalByRefObject, IDiscoveryCompleteMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DiscoveryCompleteMessage"/> class.
|
||||
/// </summary>
|
||||
public DiscoveryCompleteMessage(IEnumerable<string> warnings)
|
||||
{
|
||||
Warnings = warnings;
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
using System;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="IErrorMessage"/>.
|
||||
/// </summary>
|
||||
internal class ErrorMessage : LongLivedMarshalByRefObject, IErrorMessage
|
||||
public class ErrorMessage : LongLivedMarshalByRefObject, IErrorMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ErrorMessage"/> class.
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestAssemblyFinished"/>.
|
||||
/// </summary>
|
||||
internal class TestAssemblyFinished : LongLivedMarshalByRefObject, ITestAssemblyFinished
|
||||
public class TestAssemblyFinished : LongLivedMarshalByRefObject, ITestAssemblyFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestAssemblyFinished"/> class.
|
||||
/// </summary>
|
||||
public TestAssemblyFinished(IAssemblyInfo assembly, decimal executionTime, int testsRun, int testsFailed, int testsSkipped)
|
||||
{
|
||||
TestsSkipped = testsSkipped;
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
using System;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestAssemblyStarting"/>.
|
||||
/// </summary>
|
||||
internal class TestAssemblyStarting : LongLivedMarshalByRefObject, ITestAssemblyStarting
|
||||
public class TestAssemblyStarting : LongLivedMarshalByRefObject, ITestAssemblyStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestAssemblyStarting"/> class.
|
||||
/// </summary>
|
||||
public TestAssemblyStarting(string assemblyFileName, string configFileName, DateTime startTime, string testEnvironment, string testFrameworkDisplayName)
|
||||
{
|
||||
AssemblyFileName = assemblyFileName;
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestCaseDiscoveryMessage"/>.
|
||||
/// </summary>
|
||||
internal class TestCaseDiscoveryMessage : TestCaseMessage, ITestCaseDiscoveryMessage
|
||||
public class TestCaseDiscoveryMessage : TestCaseMessage, ITestCaseDiscoveryMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestCaseDiscoveryMessage"/> class.
|
||||
/// </summary>
|
||||
public TestCaseDiscoveryMessage(ITestCase testCase)
|
||||
: base(testCase) { }
|
||||
}
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestCaseFinished"/>.
|
||||
/// </summary>
|
||||
internal class TestCaseFinished : TestCaseMessage, ITestCaseFinished
|
||||
public class TestCaseFinished : TestCaseMessage, ITestCaseFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestCaseFinished"/> class.
|
||||
/// </summary>
|
||||
public TestCaseFinished(ITestCase testCase, decimal executionTime, int testsRun, int testsFailed, int testsSkipped)
|
||||
: base(testCase)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestCaseStarting"/>.
|
||||
/// </summary>
|
||||
internal class TestCaseStarting : TestCaseMessage, ITestCaseStarting
|
||||
public class TestCaseStarting : TestCaseMessage, ITestCaseStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestCaseStarting"/> class.
|
||||
/// </summary>
|
||||
public TestCaseStarting(ITestCase testCase)
|
||||
: base(testCase) { }
|
||||
}
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestClassConstructionFinished"/>.
|
||||
/// </summary>
|
||||
internal class TestClassConstructionFinished : TestMessage, ITestClassConstructionFinished
|
||||
public class TestClassConstructionFinished : TestMessage, ITestClassConstructionFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestClassConstructionFinished"/> class.
|
||||
/// </summary>
|
||||
public TestClassConstructionFinished(ITestCase testCase, string testDisplayName)
|
||||
: base(testCase, testDisplayName) { }
|
||||
}
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestClassConstructionStarting"/>.
|
||||
/// </summary>
|
||||
internal class TestClassConstructionStarting : TestMessage, ITestClassConstructionStarting
|
||||
public class TestClassConstructionStarting : TestMessage, ITestClassConstructionStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestClassConstructionStarting"/> class.
|
||||
/// </summary>
|
||||
public TestClassConstructionStarting(ITestCase testCase, string testDisplayName)
|
||||
: base(testCase, testDisplayName) { }
|
||||
}
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestClassDisposeFinished"/>.
|
||||
/// </summary>
|
||||
internal class TestClassDisposeFinished : TestMessage, ITestClassDisposeFinished
|
||||
public class TestClassDisposeFinished : TestMessage, ITestClassDisposeFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestClassDisposeFinished"/> class.
|
||||
/// </summary>
|
||||
public TestClassDisposeFinished(ITestCase testCase, string testDisplayName)
|
||||
: base(testCase, testDisplayName) { }
|
||||
}
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestClassDisposeStarting"/>.
|
||||
/// </summary>
|
||||
internal class TestClassDisposeStarting : TestMessage, ITestClassDisposeStarting
|
||||
public class TestClassDisposeStarting : TestMessage, ITestClassDisposeStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestClassDisposeStarting"/> class.
|
||||
/// </summary>
|
||||
public TestClassDisposeStarting(ITestCase testCase, string testDisplayName)
|
||||
: base(testCase, testDisplayName) { }
|
||||
}
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestClassFinished"/>.
|
||||
/// </summary>
|
||||
internal class TestClassFinished : TestClassMessage, ITestClassFinished
|
||||
public class TestClassFinished : TestClassMessage, ITestClassFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestClassFinished"/> class.
|
||||
/// </summary>
|
||||
public TestClassFinished(ITestCollection testCollection, string className, decimal executionTime, int testsRun, int testsFailed, int testsSkipped)
|
||||
: base(testCollection, className)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestClassStarting"/>.
|
||||
/// </summary>
|
||||
internal class TestClassStarting : TestClassMessage, ITestClassStarting
|
||||
public class TestClassStarting : TestClassMessage, ITestClassStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestClassStarting"/> class.
|
||||
/// </summary>
|
||||
public TestClassStarting(ITestCollection testCollection, string className)
|
||||
: base(testCollection, className) { }
|
||||
}
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestCollectionFinished"/>.
|
||||
/// </summary>
|
||||
internal class TestCollectionFinished : TestCollectionMessage, ITestCollectionFinished
|
||||
public class TestCollectionFinished : TestCollectionMessage, ITestCollectionFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestCollectionFinished"/> class.
|
||||
/// </summary>
|
||||
public TestCollectionFinished(ITestCollection testCollection, decimal executionTime, int testsRun, int testsFailed, int testsSkipped)
|
||||
: base(testCollection)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestCollectionStarting"/>.
|
||||
/// </summary>
|
||||
internal class TestCollectionStarting : TestCollectionMessage, ITestCollectionStarting
|
||||
public class TestCollectionStarting : TestCollectionMessage, ITestCollectionStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestCollectionStarting"/> class.
|
||||
/// </summary>
|
||||
public TestCollectionStarting(ITestCollection testCollection)
|
||||
: base(testCollection) { }
|
||||
}
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
using System;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestFailed"/>.
|
||||
/// </summary>
|
||||
internal class TestFailed : TestResultMessage, ITestFailed
|
||||
public class TestFailed : TestResultMessage, ITestFailed
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestFailed"/> class.
|
||||
/// </summary>
|
||||
public TestFailed(ITestCase testCase,
|
||||
string testDisplayName,
|
||||
decimal executionTime,
|
||||
|
@ -25,6 +32,9 @@ namespace Xunit.Sdk
|
|||
}
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestFailed"/> class.
|
||||
/// </summary>
|
||||
public TestFailed(ITestCase testCase,
|
||||
string testDisplayName,
|
||||
decimal executionTime,
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
using System;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestFinished"/>.
|
||||
/// </summary>
|
||||
internal class TestFinished : TestMessage, ITestFinished
|
||||
public class TestFinished : TestMessage, ITestFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestFinished"/> class.
|
||||
/// </summary>
|
||||
public TestFinished(ITestCase testCase, string testDisplayName, decimal executionTime, string output)
|
||||
: base(testCase, testDisplayName)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestMethodFinished"/>.
|
||||
/// </summary>
|
||||
internal class TestMethodFinished : TestCollectionMessage, ITestMethodFinished
|
||||
public class TestMethodFinished : TestCollectionMessage, ITestMethodFinished
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestMethodFinished"/> class.
|
||||
/// </summary>
|
||||
public TestMethodFinished(ITestCollection testCollection, string className, string methodName)
|
||||
: base(testCollection)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestMethodStarting"/>.
|
||||
/// </summary>
|
||||
internal class TestMethodStarting : TestCollectionMessage, ITestMethodStarting
|
||||
public class TestMethodStarting : TestCollectionMessage, ITestMethodStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestMethodStarting"/> class.
|
||||
/// </summary>
|
||||
public TestMethodStarting(ITestCollection testCollection, string className, string methodName)
|
||||
: base(testCollection)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestPassed"/>.
|
||||
/// </summary>
|
||||
internal class TestPassed : TestResultMessage, ITestPassed
|
||||
public class TestPassed : TestResultMessage, ITestPassed
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestPassed"/> class.
|
||||
/// </summary>
|
||||
public TestPassed(ITestCase testCase, string testDisplayName, decimal executionTime, string output)
|
||||
: base(testCase, testDisplayName, executionTime, output) { }
|
||||
}
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
using System;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestSkipped"/>.
|
||||
/// </summary>
|
||||
internal class TestSkipped : TestResultMessage, ITestSkipped
|
||||
public class TestSkipped : TestResultMessage, ITestSkipped
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestSkipped"/> class.
|
||||
/// </summary>
|
||||
public TestSkipped(ITestCase testCase, string testDisplayName, string reason)
|
||||
: base(testCase, testDisplayName, 0, null)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
using Xunit.Abstractions;
|
||||
|
||||
#if XUNIT_CORE_DLL
|
||||
namespace Xunit.Sdk
|
||||
#else
|
||||
namespace Xunit
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Default implementation of <see cref="ITestStarting"/>.
|
||||
/// </summary>
|
||||
internal class TestStarting : TestMessage, ITestStarting
|
||||
public class TestStarting : TestMessage, ITestStarting
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestStarting"/> class.
|
||||
/// </summary>
|
||||
public TestStarting(ITestCase testCase, string testDisplayName)
|
||||
: base(testCase, testDisplayName) { }
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ using System.Globalization;
|
|||
using System.Linq;
|
||||
using System.Xml;
|
||||
using Xunit.Abstractions;
|
||||
using Xunit.Sdk;
|
||||
|
||||
namespace Xunit
|
||||
{
|
||||
|
|
|
@ -5,7 +5,6 @@ using System.Linq;
|
|||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Xml;
|
||||
using Xunit.Abstractions;
|
||||
using Xunit.Sdk;
|
||||
|
||||
namespace Xunit
|
||||
{
|
||||
|
|
|
@ -6,6 +6,7 @@ using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
|
|||
using Xunit.Abstractions;
|
||||
using Xunit.Runner.VisualStudio.Settings;
|
||||
using VsTestResult = Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult;
|
||||
using VsTestResultMessage = Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResultMessage;
|
||||
|
||||
namespace Xunit.Runner.VisualStudio.TestAdapter
|
||||
{
|
||||
|
@ -92,7 +93,7 @@ namespace Xunit.Runner.VisualStudio.TestAdapter
|
|||
result.Duration = TimeSpan.FromMilliseconds(1);
|
||||
|
||||
if (!String.IsNullOrEmpty(testResult.Output))
|
||||
result.Messages.Add(new TestResultMessage(TestResultMessage.StandardOutCategory, testResult.Output));
|
||||
result.Messages.Add(new VsTestResultMessage(VsTestResultMessage.StandardOutCategory, testResult.Output));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -186,7 +186,7 @@ public class XunitTestFrameworkDiscovererTests
|
|||
{
|
||||
var sourceProvider = Substitute.For<ISourceInformationProvider>();
|
||||
sourceProvider.GetSourceInformation(null)
|
||||
.ReturnsForAnyArgs(new SourceInformation { FileName = "Source File", LineNumber = 42 });
|
||||
.ReturnsForAnyArgs(new Xunit.SourceInformation { FileName = "Source File", LineNumber = 42 });
|
||||
var typeInfo = Reflector.Wrap(typeof(ClassWithSingleTest));
|
||||
var mockAssembly = Mocks.AssemblyInfo(types: new[] { typeInfo });
|
||||
var framework = TestableXunitTestFrameworkDiscoverer.Create(mockAssembly, sourceProvider);
|
||||
|
@ -276,7 +276,7 @@ public class XunitTestFrameworkDiscovererTests
|
|||
{
|
||||
var sourceProvider = Substitute.For<ISourceInformationProvider>();
|
||||
sourceProvider.GetSourceInformation(null)
|
||||
.ReturnsForAnyArgs(new SourceInformation { FileName = "Source File", LineNumber = 42 });
|
||||
.ReturnsForAnyArgs(new Xunit.SourceInformation { FileName = "Source File", LineNumber = 42 });
|
||||
var framework = TestableXunitTestFrameworkDiscoverer.Create(sourceProvider: sourceProvider);
|
||||
var typeInfo = Reflector.Wrap(typeof(ClassWithSingleTest));
|
||||
framework.Assembly.GetType("abc").Returns(typeInfo);
|
||||
|
|
|
@ -70,9 +70,6 @@
|
|||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\src\common\SourceInformation.cs">
|
||||
<Link>Common\SourceInformation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\common\TestDiscoveryVisitor.cs">
|
||||
<Link>Common\TestDiscoveryVisitor.cs</Link>
|
||||
</Compile>
|
||||
|
|
|
@ -48,105 +48,9 @@
|
|||
<Compile Include="..\..\src\common\DictionaryExtensions.cs">
|
||||
<Link>Common\DictionaryExtensions.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\common\SourceInformation.cs">
|
||||
<Link>Common\SourceInformation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\common\TestDiscoveryVisitor.cs">
|
||||
<Link>Common\TestDiscoveryVisitor.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\AfterTestFinished.cs">
|
||||
<Link>Common\Messages\AfterTestFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\AfterTestStarting.cs">
|
||||
<Link>Common\Messages\AfterTestStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\BaseMessages\TestCaseMessage.cs">
|
||||
<Link>Common\Messages\BaseMessages\TestCaseMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\BaseMessages\TestClassMessage.cs">
|
||||
<Link>Common\Messages\BaseMessages\TestClassMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\BaseMessages\TestCollectionMessage.cs">
|
||||
<Link>Common\Messages\BaseMessages\TestCollectionMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\BaseMessages\TestMessage.cs">
|
||||
<Link>Common\Messages\BaseMessages\TestMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\BaseMessages\TestResultMessage.cs">
|
||||
<Link>Common\Messages\BaseMessages\TestResultMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\BeforeTestFinished.cs">
|
||||
<Link>Common\Messages\BeforeTestFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\BeforeTestStarting.cs">
|
||||
<Link>Common\Messages\BeforeTestStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\DiscoveryCompleteMessage.cs">
|
||||
<Link>Common\Messages\DiscoveryCompleteMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\ErrorMessage.cs">
|
||||
<Link>Common\Messages\ErrorMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestAssemblyFinished.cs">
|
||||
<Link>Common\Messages\TestAssemblyFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestAssemblyStarting.cs">
|
||||
<Link>Common\Messages\TestAssemblyStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestCaseDiscoveryMessage.cs">
|
||||
<Link>Common\Messages\TestCaseDiscoveryMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestCaseFinished.cs">
|
||||
<Link>Common\Messages\TestCaseFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestCaseStarting.cs">
|
||||
<Link>Common\Messages\TestCaseStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestClassConstructionFinished.cs">
|
||||
<Link>Common\Messages\TestClassConstructionFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestClassConstructionStarting.cs">
|
||||
<Link>Common\Messages\TestClassConstructionStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestClassDisposeFinished.cs">
|
||||
<Link>Common\Messages\TestClassDisposeFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestClassDisposeStarting.cs">
|
||||
<Link>Common\Messages\TestClassDisposeStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestClassFinished.cs">
|
||||
<Link>Common\Messages\TestClassFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestClassStarting.cs">
|
||||
<Link>Common\Messages\TestClassStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestCollectionFinished.cs">
|
||||
<Link>Common\Messages\TestCollectionFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestCollectionStarting.cs">
|
||||
<Link>Common\Messages\TestCollectionStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestFailed.cs">
|
||||
<Link>Common\Messages\TestFailed.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestFinished.cs">
|
||||
<Link>Common\Messages\TestFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestMethodFinished.cs">
|
||||
<Link>Common\Messages\TestMethodFinished.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestMethodStarting.cs">
|
||||
<Link>Common\Messages\TestMethodStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestPassed.cs">
|
||||
<Link>Common\Messages\TestPassed.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestSkipped.cs">
|
||||
<Link>Common\Messages\TestSkipped.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\src\xunit.execution\Sdk\Messages\TestStarting.cs">
|
||||
<Link>Common\Messages\TestStarting.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="Frameworks\v1\TestClassCallbackHandlerTests.cs" />
|
||||
<Compile Include="Frameworks\v1\Xunit1TestCaseTests.cs" />
|
||||
<Compile Include="Frameworks\v1\Xunit1Tests.cs" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче