Skip to content

Commit 7364cfc

Browse files
committed
Regen Microsoft.AspNetCore.Testing ref/ code
- account for xUnit refactoring in 'release/3.1' \n\nCommit migrated from dotnet/extensions@c6cacd7
1 parent f706def commit 7364cfc

File tree

2 files changed

+188
-6
lines changed

2 files changed

+188
-6
lines changed

src/Testing/ref/Microsoft.AspNetCore.Testing.net46.cs

Lines changed: 94 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,39 @@
33

44
namespace Microsoft.AspNetCore.Testing
55
{
6+
public partial class AspNetTestAssemblyRunner : Xunit.Sdk.XunitTestAssemblyRunner
7+
{
8+
public AspNetTestAssemblyRunner(Xunit.Abstractions.ITestAssembly testAssembly, System.Collections.Generic.IEnumerable<Xunit.Sdk.IXunitTestCase> testCases, Xunit.Abstractions.IMessageSink diagnosticMessageSink, Xunit.Abstractions.IMessageSink executionMessageSink, Xunit.Abstractions.ITestFrameworkExecutionOptions executionOptions) : base (default(Xunit.Abstractions.ITestAssembly), default(System.Collections.Generic.IEnumerable<Xunit.Sdk.IXunitTestCase>), default(Xunit.Abstractions.IMessageSink), default(Xunit.Abstractions.IMessageSink), default(Xunit.Abstractions.ITestFrameworkExecutionOptions)) { }
9+
[System.Diagnostics.DebuggerStepThroughAttribute]
10+
protected override System.Threading.Tasks.Task AfterTestAssemblyStartingAsync() { throw null; }
11+
protected override System.Threading.Tasks.Task BeforeTestAssemblyFinishedAsync() { throw null; }
12+
protected override System.Threading.Tasks.Task<Xunit.Sdk.RunSummary> RunTestCollectionAsync(Xunit.Sdk.IMessageBus messageBus, Xunit.Abstractions.ITestCollection testCollection, System.Collections.Generic.IEnumerable<Xunit.Sdk.IXunitTestCase> testCases, System.Threading.CancellationTokenSource cancellationTokenSource) { throw null; }
13+
}
14+
public partial class AspNetTestCollectionRunner : Xunit.Sdk.XunitTestCollectionRunner
15+
{
16+
public AspNetTestCollectionRunner(System.Collections.Generic.Dictionary<System.Type, object> assemblyFixtureMappings, Xunit.Abstractions.ITestCollection testCollection, System.Collections.Generic.IEnumerable<Xunit.Sdk.IXunitTestCase> testCases, Xunit.Abstractions.IMessageSink diagnosticMessageSink, Xunit.Sdk.IMessageBus messageBus, Xunit.Sdk.ITestCaseOrderer testCaseOrderer, Xunit.Sdk.ExceptionAggregator aggregator, System.Threading.CancellationTokenSource cancellationTokenSource) : base (default(Xunit.Abstractions.ITestCollection), default(System.Collections.Generic.IEnumerable<Xunit.Sdk.IXunitTestCase>), default(Xunit.Abstractions.IMessageSink), default(Xunit.Sdk.IMessageBus), default(Xunit.Sdk.ITestCaseOrderer), default(Xunit.Sdk.ExceptionAggregator), default(System.Threading.CancellationTokenSource)) { }
17+
[System.Diagnostics.DebuggerStepThroughAttribute]
18+
protected override System.Threading.Tasks.Task AfterTestCollectionStartingAsync() { throw null; }
19+
protected override System.Threading.Tasks.Task BeforeTestCollectionFinishedAsync() { throw null; }
20+
protected override System.Threading.Tasks.Task<Xunit.Sdk.RunSummary> RunTestClassAsync(Xunit.Abstractions.ITestClass testClass, Xunit.Abstractions.IReflectionTypeInfo @class, System.Collections.Generic.IEnumerable<Xunit.Sdk.IXunitTestCase> testCases) { throw null; }
21+
}
22+
public partial class AspNetTestFramework : Xunit.Sdk.XunitTestFramework
23+
{
24+
public AspNetTestFramework(Xunit.Abstractions.IMessageSink messageSink) : base (default(Xunit.Abstractions.IMessageSink)) { }
25+
protected override Xunit.Abstractions.ITestFrameworkExecutor CreateExecutor(System.Reflection.AssemblyName assemblyName) { throw null; }
26+
}
27+
public partial class AspNetTestFrameworkExecutor : Xunit.Sdk.XunitTestFrameworkExecutor
28+
{
29+
public AspNetTestFrameworkExecutor(System.Reflection.AssemblyName assemblyName, Xunit.Abstractions.ISourceInformationProvider sourceInformationProvider, Xunit.Abstractions.IMessageSink diagnosticMessageSink) : base (default(System.Reflection.AssemblyName), default(Xunit.Abstractions.ISourceInformationProvider), default(Xunit.Abstractions.IMessageSink)) { }
30+
[System.Diagnostics.DebuggerStepThroughAttribute]
31+
protected override void RunTestCases(System.Collections.Generic.IEnumerable<Xunit.Sdk.IXunitTestCase> testCases, Xunit.Abstractions.IMessageSink executionMessageSink, Xunit.Abstractions.ITestFrameworkExecutionOptions executionOptions) { }
32+
}
33+
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=true)]
34+
public partial class AssemblyFixtureAttribute : System.Attribute
35+
{
36+
public AssemblyFixtureAttribute(System.Type fixtureType) { }
37+
public System.Type FixtureType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
38+
}
639
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false)]
740
[Xunit.Sdk.XunitTestCaseDiscovererAttribute("Microsoft.AspNetCore.Testing.ConditionalFactDiscoverer", "Microsoft.AspNetCore.Testing")]
841
public partial class ConditionalFactAttribute : Xunit.FactAttribute
@@ -56,7 +89,7 @@ public static partial class ExceptionAssert
5689
public static TException Throws<TException>(System.Func<object> testCode, string exceptionMessage) where TException : System.Exception { throw null; }
5790
}
5891
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method)]
59-
[Xunit.Sdk.TraitDiscovererAttribute("Microsoft.AspNetCore.Testing.FlakyTestDiscoverer", "Microsoft.AspNetCore.Testing")]
92+
[Xunit.Sdk.TraitDiscovererAttribute("Microsoft.AspNetCore.Testing.FlakyTraitDiscoverer", "Microsoft.AspNetCore.Testing")]
6093
public sealed partial class FlakyAttribute : System.Attribute, Xunit.Sdk.ITraitAttribute
6194
{
6295
public FlakyAttribute(string gitHubIssueUrl, string firstFilter, params string[] additionalFilters) { }
@@ -88,9 +121,9 @@ public static partial class Helix
88121
public const string Windows10Amd64 = "Helix:Queue:Windows.10.Amd64.ClientRS4.VS2017.Open";
89122
}
90123
}
91-
public partial class FlakyTestDiscoverer : Xunit.Sdk.ITraitDiscoverer
124+
public partial class FlakyTraitDiscoverer : Xunit.Sdk.ITraitDiscoverer
92125
{
93-
public FlakyTestDiscoverer() { }
126+
public FlakyTraitDiscoverer() { }
94127
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>> GetTraits(Xunit.Abstractions.IAttributeInfo traitAttribute) { throw null; }
95128
}
96129
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false)]
@@ -131,6 +164,11 @@ public partial interface ITestCondition
131164
bool IsMet { get; }
132165
string SkipReason { get; }
133166
}
167+
public partial interface ITestMethodLifecycle
168+
{
169+
System.Threading.Tasks.Task OnTestEndAsync(Microsoft.AspNetCore.Testing.TestContext context, System.Exception exception, System.Threading.CancellationToken cancellationToken);
170+
System.Threading.Tasks.Task OnTestStartAsync(Microsoft.AspNetCore.Testing.TestContext context, System.Threading.CancellationToken cancellationToken);
171+
}
134172
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
135173
public partial class MinimumOSVersionAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
136174
{
@@ -152,6 +190,20 @@ public OSSkipConditionAttribute(Microsoft.AspNetCore.Testing.OperatingSystems op
152190
public bool IsMet { get { throw null; } }
153191
public string SkipReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
154192
}
193+
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
194+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
195+
public partial class RepeatAttribute : System.Attribute
196+
{
197+
public RepeatAttribute(int runCount = 10) { }
198+
public int RunCount { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
199+
}
200+
public partial class RepeatContext
201+
{
202+
public RepeatContext(int limit) { }
203+
public static Microsoft.AspNetCore.Testing.RepeatContext Current { get { throw null; } }
204+
public int CurrentIteration { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
205+
public int Limit { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
206+
}
155207
[System.AttributeUsageAttribute(System.AttributeTargets.Method)]
156208
public partial class ReplaceCultureAttribute : Xunit.Sdk.BeforeAfterTestAttribute
157209
{
@@ -170,6 +222,11 @@ public enum RuntimeFrameworks
170222
CLR = 2,
171223
CoreCLR = 4,
172224
}
225+
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false)]
226+
public partial class ShortClassNameAttribute : System.Attribute
227+
{
228+
public ShortClassNameAttribute() { }
229+
}
173230
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
174231
public partial class SkipOnCIAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
175232
{
@@ -210,10 +267,41 @@ public static partial class TaskExtensions
210267
[System.Diagnostics.DebuggerStepThroughAttribute]
211268
public static System.Threading.Tasks.Task<T> TimeoutAfter<T>(this System.Threading.Tasks.Task<T> task, System.TimeSpan timeout, [System.Runtime.CompilerServices.CallerFilePathAttribute]string filePath = null, [System.Runtime.CompilerServices.CallerLineNumberAttribute]int lineNumber = 0) { throw null; }
212269
}
270+
public sealed partial class TestContext
271+
{
272+
public TestContext(System.Type testClass, object[] constructorArguments, System.Reflection.MethodInfo testMethod, object[] methodArguments, Xunit.Abstractions.ITestOutputHelper output) { }
273+
public object[] ConstructorArguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
274+
public Microsoft.AspNetCore.Testing.TestFileOutputContext FileOutput { get { throw null; } }
275+
public object[] MethodArguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
276+
public Xunit.Abstractions.ITestOutputHelper Output { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
277+
public System.Type TestClass { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
278+
public System.Reflection.MethodInfo TestMethod { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
279+
}
280+
public sealed partial class TestFileOutputContext
281+
{
282+
public TestFileOutputContext(Microsoft.AspNetCore.Testing.TestContext parent) { }
283+
public string AssemblyOutputDirectory { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
284+
public string TestClassName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
285+
public string TestClassOutputDirectory { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
286+
public string TestName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
287+
public static string GetAssemblyBaseDirectory(System.Reflection.Assembly assembly, string baseDirectory = null) { throw null; }
288+
public static string GetOutputDirectory(System.Reflection.Assembly assembly) { throw null; }
289+
public static string GetTestClassName(System.Type type) { throw null; }
290+
public static string GetTestMethodName(System.Reflection.MethodInfo method, object[] arguments) { throw null; }
291+
public string GetUniqueFileName(string prefix, string extension) { throw null; }
292+
public static string RemoveIllegalFileChars(string s) { throw null; }
293+
}
213294
public static partial class TestMethodExtensions
214295
{
215296
public static string EvaluateSkipConditions(this Xunit.Abstractions.ITestMethod testMethod) { throw null; }
216297
}
298+
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=true)]
299+
public partial class TestOutputDirectoryAttribute : System.Attribute
300+
{
301+
public TestOutputDirectoryAttribute(string targetFramework, string baseDirectory = null) { }
302+
public string BaseDirectory { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
303+
public string TargetFramework { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
304+
}
217305
[System.ObsoleteAttribute("This API is obsolete and the pattern its usage encouraged should not be used anymore. See https://github.com/aspnet/Extensions/issues/1697 for details.")]
218306
public partial class TestPathUtilities
219307
{
@@ -231,6 +319,9 @@ public static partial class TestPlatformHelper
231319
public static partial class WindowsVersions
232320
{
233321
public const string Win10 = "10.0";
322+
public const string Win10_19H2 = "10.0.18363";
323+
public const string Win10_20H1 = "10.0.18990";
324+
public const string Win10_RS4 = "10.0.17134";
234325
public const string Win2008R2 = "6.1";
235326
public const string Win7 = "6.1";
236327
public const string Win8 = "6.2";

0 commit comments

Comments
 (0)