Revert "Remove ref project from Microsoft.AspNetCore.Testing (dotnet/extensions#2817)" (dotnet/extensions#2882)
This reverts commit dotnet/extensions@b624d6ba91b9c292ff9a2aa786a575b0eaa31b4b.\n\nCommit migrated from 1286a6ff55
This commit is contained in:
parent
9eed4375d1
commit
45c582fff5
|
|
@ -0,0 +1,32 @@
|
|||
<!-- This file is automatically generated. -->
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
||||
<Compile Include="Microsoft.AspNetCore.Testing.netstandard2.0.cs" />
|
||||
<Reference Include="Microsoft.Win32.Registry" />
|
||||
<Reference Include="System.ValueTuple" />
|
||||
<Reference Include="xunit.assert" />
|
||||
<Reference Include="xunit.extensibility.execution" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net46'">
|
||||
<Compile Include="Microsoft.AspNetCore.Testing.net46.cs" />
|
||||
<Reference Include="Microsoft.Win32.Registry" />
|
||||
<Reference Include="System.ValueTuple" />
|
||||
<Reference Include="xunit.assert" />
|
||||
<Reference Include="xunit.extensibility.execution" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.IO.Compression.FileSystem" />
|
||||
<Reference Include="mscorlib" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,360 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
namespace Microsoft.AspNetCore.Testing
|
||||
{
|
||||
public partial class AspNetTestAssemblyRunner : Xunit.Sdk.XunitTestAssemblyRunner
|
||||
{
|
||||
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)) { }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
protected override System.Threading.Tasks.Task AfterTestAssemblyStartingAsync() { throw null; }
|
||||
protected override System.Threading.Tasks.Task BeforeTestAssemblyFinishedAsync() { throw null; }
|
||||
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; }
|
||||
}
|
||||
public partial class AspNetTestCollectionRunner : Xunit.Sdk.XunitTestCollectionRunner
|
||||
{
|
||||
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)) { }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
protected override System.Threading.Tasks.Task AfterTestCollectionStartingAsync() { throw null; }
|
||||
protected override System.Threading.Tasks.Task BeforeTestCollectionFinishedAsync() { throw null; }
|
||||
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; }
|
||||
}
|
||||
public partial class AspNetTestFramework : Xunit.Sdk.XunitTestFramework
|
||||
{
|
||||
public AspNetTestFramework(Xunit.Abstractions.IMessageSink messageSink) : base (default(Xunit.Abstractions.IMessageSink)) { }
|
||||
protected override Xunit.Abstractions.ITestFrameworkExecutor CreateExecutor(System.Reflection.AssemblyName assemblyName) { throw null; }
|
||||
}
|
||||
public partial class AspNetTestFrameworkExecutor : Xunit.Sdk.XunitTestFrameworkExecutor
|
||||
{
|
||||
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)) { }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
protected override void RunTestCases(System.Collections.Generic.IEnumerable<Xunit.Sdk.IXunitTestCase> testCases, Xunit.Abstractions.IMessageSink executionMessageSink, Xunit.Abstractions.ITestFrameworkExecutionOptions executionOptions) { }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=true)]
|
||||
public partial class AssemblyFixtureAttribute : System.Attribute
|
||||
{
|
||||
public AssemblyFixtureAttribute(System.Type fixtureType) { }
|
||||
public System.Type FixtureType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
[Xunit.Sdk.XunitTestCaseDiscovererAttribute("Microsoft.AspNetCore.Testing.ConditionalFactDiscoverer", "Microsoft.AspNetCore.Testing")]
|
||||
public partial class ConditionalFactAttribute : Xunit.FactAttribute
|
||||
{
|
||||
public ConditionalFactAttribute() { }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
[Xunit.Sdk.XunitTestCaseDiscovererAttribute("Microsoft.AspNetCore.Testing.ConditionalTheoryDiscoverer", "Microsoft.AspNetCore.Testing")]
|
||||
public partial class ConditionalTheoryAttribute : Xunit.TheoryAttribute
|
||||
{
|
||||
public ConditionalTheoryAttribute() { }
|
||||
}
|
||||
public partial class CultureReplacer : System.IDisposable
|
||||
{
|
||||
public CultureReplacer(System.Globalization.CultureInfo culture, System.Globalization.CultureInfo uiCulture) { }
|
||||
public CultureReplacer(string culture = "en-GB", string uiCulture = "en-US") { }
|
||||
public static System.Globalization.CultureInfo DefaultCulture { get { throw null; } }
|
||||
public static string DefaultCultureName { get { throw null; } }
|
||||
public static string DefaultUICultureName { get { throw null; } }
|
||||
public void Dispose() { }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=true, AllowMultiple=false)]
|
||||
public sealed partial class DockerOnlyAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public DockerOnlyAttribute() { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string SkipReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
|
||||
public partial class EnvironmentVariableSkipConditionAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public EnvironmentVariableSkipConditionAttribute(string variableName, params string[] values) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public bool RunOnMatch { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
public string SkipReason { get { throw null; } }
|
||||
}
|
||||
public static partial class ExceptionAssert
|
||||
{
|
||||
public static System.ArgumentException ThrowsArgument(System.Action testCode, string paramName, string exceptionMessage) { throw null; }
|
||||
public static System.Threading.Tasks.Task<System.ArgumentException> ThrowsArgumentAsync(System.Func<System.Threading.Tasks.Task> testCode, string paramName, string exceptionMessage) { throw null; }
|
||||
public static System.ArgumentNullException ThrowsArgumentNull(System.Action testCode, string paramName) { throw null; }
|
||||
public static System.ArgumentException ThrowsArgumentNullOrEmpty(System.Action testCode, string paramName) { throw null; }
|
||||
public static System.Threading.Tasks.Task<System.ArgumentException> ThrowsArgumentNullOrEmptyAsync(System.Func<System.Threading.Tasks.Task> testCode, string paramName) { throw null; }
|
||||
public static System.ArgumentException ThrowsArgumentNullOrEmptyString(System.Action testCode, string paramName) { throw null; }
|
||||
public static System.Threading.Tasks.Task<System.ArgumentException> ThrowsArgumentNullOrEmptyStringAsync(System.Func<System.Threading.Tasks.Task> testCode, string paramName) { throw null; }
|
||||
public static System.ArgumentOutOfRangeException ThrowsArgumentOutOfRange(System.Action testCode, string paramName, string exceptionMessage, object actualValue = null) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<TException> ThrowsAsync<TException>(System.Func<System.Threading.Tasks.Task> testCode, string exceptionMessage) where TException : System.Exception { throw null; }
|
||||
public static TException Throws<TException>(System.Action testCode) where TException : System.Exception { throw null; }
|
||||
public static TException Throws<TException>(System.Action testCode, string exceptionMessage) where TException : System.Exception { throw null; }
|
||||
public static TException Throws<TException>(System.Func<object> testCode, string exceptionMessage) where TException : System.Exception { throw null; }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method)]
|
||||
[Xunit.Sdk.TraitDiscovererAttribute("Microsoft.AspNetCore.Testing.FlakyTraitDiscoverer", "Microsoft.AspNetCore.Testing")]
|
||||
public sealed partial class FlakyAttribute : System.Attribute, Xunit.Sdk.ITraitAttribute
|
||||
{
|
||||
public FlakyAttribute(string gitHubIssueUrl, string firstFilter, params string[] additionalFilters) { }
|
||||
public System.Collections.Generic.IReadOnlyList<string> Filters { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string GitHubIssueUrl { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
public static partial class FlakyOn
|
||||
{
|
||||
public const string All = "All";
|
||||
public static partial class AzP
|
||||
{
|
||||
public const string All = "AzP:All";
|
||||
public const string Linux = "AzP:OS:Linux";
|
||||
public const string macOS = "AzP:OS:Darwin";
|
||||
public const string Windows = "AzP:OS:Windows_NT";
|
||||
}
|
||||
public static partial class Helix
|
||||
{
|
||||
public const string All = "Helix:Queue:All";
|
||||
public const string Centos7Amd64 = "Helix:Queue:Centos.7.Amd64.Open";
|
||||
public const string Debian8Amd64 = "Helix:Queue:Debian.8.Amd64.Open";
|
||||
public const string Debian9Amd64 = "Helix:Queue:Debian.9.Amd64.Open";
|
||||
public const string Fedora27Amd64 = "Helix:Queue:Fedora.27.Amd64.Open";
|
||||
public const string Fedora28Amd64 = "Helix:Queue:Fedora.28.Amd64.Open";
|
||||
public const string macOS1012Amd64 = "Helix:Queue:OSX.1012.Amd64.Open";
|
||||
public const string Redhat7Amd64 = "Helix:Queue:Redhat.7.Amd64.Open";
|
||||
public const string Ubuntu1604Amd64 = "Helix:Queue:Ubuntu.1604.Amd64.Open";
|
||||
public const string Ubuntu1810Amd64 = "Helix:Queue:Ubuntu.1810.Amd64.Open";
|
||||
public const string Windows10Amd64 = "Helix:Queue:Windows.10.Amd64.ClientRS4.VS2017.Open";
|
||||
}
|
||||
}
|
||||
public partial class FlakyTraitDiscoverer : Xunit.Sdk.ITraitDiscoverer
|
||||
{
|
||||
public FlakyTraitDiscoverer() { }
|
||||
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>> GetTraits(Xunit.Abstractions.IAttributeInfo traitAttribute) { throw null; }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
public partial class FrameworkSkipConditionAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public FrameworkSkipConditionAttribute(Microsoft.AspNetCore.Testing.RuntimeFrameworks excludedFrameworks) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string SkipReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
}
|
||||
public static partial class HelixQueues
|
||||
{
|
||||
public const string Centos7Amd64 = "Centos.7.Amd64.Open";
|
||||
public const string Debian8Amd64 = "Debian.8.Amd64.Open";
|
||||
public const string Debian9Amd64 = "Debian.9.Amd64.Open";
|
||||
public const string Fedora27Amd64 = "Fedora.27.Amd64.Open";
|
||||
public const string Fedora28Amd64 = "Fedora.28.Amd64.Open";
|
||||
public const string macOS1012Amd64 = "OSX.1012.Amd64.Open";
|
||||
public const string Redhat7Amd64 = "Redhat.7.Amd64.Open";
|
||||
public const string Ubuntu1604Amd64 = "Ubuntu.1604.Amd64.Open";
|
||||
public const string Ubuntu1810Amd64 = "Ubuntu.1810.Amd64.Open";
|
||||
public const string Windows10Amd64 = "Windows.10.Amd64.ClientRS4.VS2017.Open";
|
||||
}
|
||||
public static partial class HttpClientSlim
|
||||
{
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<System.Net.Sockets.Socket> GetSocket(System.Uri requestUri) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<string> GetStringAsync(string requestUri, bool validateCertificate = true) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<string> GetStringAsync(System.Uri requestUri, bool validateCertificate = true) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<string> PostAsync(string requestUri, System.Net.Http.HttpContent content, bool validateCertificate = true) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<string> PostAsync(System.Uri requestUri, System.Net.Http.HttpContent content, bool validateCertificate = true) { throw null; }
|
||||
}
|
||||
public partial interface ITestCondition
|
||||
{
|
||||
bool IsMet { get; }
|
||||
string SkipReason { get; }
|
||||
}
|
||||
public partial interface ITestMethodLifecycle
|
||||
{
|
||||
System.Threading.Tasks.Task OnTestEndAsync(Microsoft.AspNetCore.Testing.TestContext context, System.Exception exception, System.Threading.CancellationToken cancellationToken);
|
||||
System.Threading.Tasks.Task OnTestStartAsync(Microsoft.AspNetCore.Testing.TestContext context, System.Threading.CancellationToken cancellationToken);
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
|
||||
public partial class MinimumOSVersionAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public MinimumOSVersionAttribute(Microsoft.AspNetCore.Testing.OperatingSystems operatingSystem, string minVersion) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string SkipReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
}
|
||||
[System.FlagsAttribute]
|
||||
public enum OperatingSystems
|
||||
{
|
||||
Linux = 1,
|
||||
MacOSX = 2,
|
||||
Windows = 4,
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
|
||||
public partial class OSSkipConditionAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public OSSkipConditionAttribute(Microsoft.AspNetCore.Testing.OperatingSystems operatingSystem, params string[] versions) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string SkipReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public partial class RepeatAttribute : System.Attribute
|
||||
{
|
||||
public RepeatAttribute(int runCount = 10) { }
|
||||
public int RunCount { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
public partial class RepeatContext
|
||||
{
|
||||
public RepeatContext(int limit) { }
|
||||
public static Microsoft.AspNetCore.Testing.RepeatContext Current { get { throw null; } }
|
||||
public int CurrentIteration { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
public int Limit { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method)]
|
||||
public partial class ReplaceCultureAttribute : Xunit.Sdk.BeforeAfterTestAttribute
|
||||
{
|
||||
public ReplaceCultureAttribute() { }
|
||||
public ReplaceCultureAttribute(string currentCulture, string currentUICulture) { }
|
||||
public System.Globalization.CultureInfo Culture { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public System.Globalization.CultureInfo UICulture { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public override void After(System.Reflection.MethodInfo methodUnderTest) { }
|
||||
public override void Before(System.Reflection.MethodInfo methodUnderTest) { }
|
||||
}
|
||||
[System.FlagsAttribute]
|
||||
public enum RuntimeFrameworks
|
||||
{
|
||||
None = 0,
|
||||
Mono = 1,
|
||||
CLR = 2,
|
||||
CoreCLR = 4,
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false)]
|
||||
public partial class ShortClassNameAttribute : System.Attribute
|
||||
{
|
||||
public ShortClassNameAttribute() { }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
public partial class SkipOnCIAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public SkipOnCIAttribute(string issueUrl = "") { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string IssueUrl { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string SkipReason { get { throw null; } }
|
||||
public static string GetIfOnAzdo() { throw null; }
|
||||
public static string GetTargetHelixQueue() { throw null; }
|
||||
public static bool OnAzdo() { throw null; }
|
||||
public static bool OnCI() { throw null; }
|
||||
public static bool OnHelix() { throw null; }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
public partial class SkipOnHelixAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public SkipOnHelixAttribute(string issueUrl) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string IssueUrl { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string Queues { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
public string SkipReason { get { throw null; } }
|
||||
public static string GetTargetHelixQueue() { throw null; }
|
||||
public static bool OnHelix() { throw null; }
|
||||
}
|
||||
public partial class SkippedTestCase : Xunit.Sdk.XunitTestCase
|
||||
{
|
||||
[System.ObsoleteAttribute("Called by the de-serializer; should only be called by deriving classes for de-serialization purposes")]
|
||||
public SkippedTestCase() { }
|
||||
public SkippedTestCase(string skipReason, Xunit.Abstractions.IMessageSink diagnosticMessageSink, Xunit.Sdk.TestMethodDisplay defaultMethodDisplay, Xunit.Sdk.TestMethodDisplayOptions defaultMethodDisplayOptions, Xunit.Abstractions.ITestMethod testMethod, object[] testMethodArguments = null) { }
|
||||
public override void Deserialize(Xunit.Abstractions.IXunitSerializationInfo data) { }
|
||||
protected override string GetSkipReason(Xunit.Abstractions.IAttributeInfo factAttribute) { throw null; }
|
||||
public override void Serialize(Xunit.Abstractions.IXunitSerializationInfo data) { }
|
||||
}
|
||||
public static partial class TaskExtensions
|
||||
{
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task TimeoutAfter(this System.Threading.Tasks.Task task, System.TimeSpan timeout, [System.Runtime.CompilerServices.CallerFilePathAttribute]string filePath = null, [System.Runtime.CompilerServices.CallerLineNumberAttribute]int lineNumber = 0) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
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; }
|
||||
}
|
||||
public sealed partial class TestContext
|
||||
{
|
||||
public TestContext(System.Type testClass, object[] constructorArguments, System.Reflection.MethodInfo testMethod, object[] methodArguments, Xunit.Abstractions.ITestOutputHelper output) { }
|
||||
public object[] ConstructorArguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public Microsoft.AspNetCore.Testing.TestFileOutputContext FileOutput { get { throw null; } }
|
||||
public object[] MethodArguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public Xunit.Abstractions.ITestOutputHelper Output { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public System.Type TestClass { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public System.Reflection.MethodInfo TestMethod { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
public sealed partial class TestFileOutputContext
|
||||
{
|
||||
public TestFileOutputContext(Microsoft.AspNetCore.Testing.TestContext parent) { }
|
||||
public string AssemblyOutputDirectory { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string TestClassName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string TestClassOutputDirectory { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string TestName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public static string GetAssemblyBaseDirectory(System.Reflection.Assembly assembly, string baseDirectory = null) { throw null; }
|
||||
public static string GetOutputDirectory(System.Reflection.Assembly assembly) { throw null; }
|
||||
public static string GetTestClassName(System.Type type) { throw null; }
|
||||
public static string GetTestMethodName(System.Reflection.MethodInfo method, object[] arguments) { throw null; }
|
||||
public string GetUniqueFileName(string prefix, string extension) { throw null; }
|
||||
public static string RemoveIllegalFileChars(string s) { throw null; }
|
||||
}
|
||||
public static partial class TestMethodExtensions
|
||||
{
|
||||
public static string EvaluateSkipConditions(this Xunit.Abstractions.ITestMethod testMethod) { throw null; }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=true)]
|
||||
public partial class TestOutputDirectoryAttribute : System.Attribute
|
||||
{
|
||||
public TestOutputDirectoryAttribute(string targetFramework, string baseDirectory = null) { }
|
||||
public string BaseDirectory { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string TargetFramework { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
[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.")]
|
||||
public partial class TestPathUtilities
|
||||
{
|
||||
public TestPathUtilities() { }
|
||||
public static string GetRepoRootDirectory() { throw null; }
|
||||
public static string GetSolutionRootDirectory(string solution) { throw null; }
|
||||
}
|
||||
public static partial class TestPlatformHelper
|
||||
{
|
||||
public static bool IsLinux { get { throw null; } }
|
||||
public static bool IsMac { get { throw null; } }
|
||||
public static bool IsMono { get { throw null; } }
|
||||
public static bool IsWindows { get { throw null; } }
|
||||
}
|
||||
public static partial class WindowsVersions
|
||||
{
|
||||
public const string Win10 = "10.0";
|
||||
public const string Win10_19H2 = "10.0.18363";
|
||||
public const string Win10_20H1 = "10.0.18990";
|
||||
public const string Win10_RS4 = "10.0.17134";
|
||||
public const string Win2008R2 = "6.1";
|
||||
public const string Win7 = "6.1";
|
||||
public const string Win8 = "6.2";
|
||||
public const string Win81 = "6.3";
|
||||
}
|
||||
}
|
||||
namespace Microsoft.AspNetCore.Testing.Tracing
|
||||
{
|
||||
public partial class CollectingEventListener : System.Diagnostics.Tracing.EventListener
|
||||
{
|
||||
public CollectingEventListener() { }
|
||||
public void CollectFrom(System.Diagnostics.Tracing.EventSource eventSource) { }
|
||||
public void CollectFrom(string eventSourceName) { }
|
||||
public System.Collections.Generic.IReadOnlyList<System.Diagnostics.Tracing.EventWrittenEventArgs> GetEventsWritten() { throw null; }
|
||||
protected override void OnEventSourceCreated(System.Diagnostics.Tracing.EventSource eventSource) { }
|
||||
protected override void OnEventWritten(System.Diagnostics.Tracing.EventWrittenEventArgs eventData) { }
|
||||
}
|
||||
public partial class EventAssert
|
||||
{
|
||||
public EventAssert(int expectedId, string expectedName, System.Diagnostics.Tracing.EventLevel expectedLevel) { }
|
||||
public static void Collection(System.Collections.Generic.IEnumerable<System.Diagnostics.Tracing.EventWrittenEventArgs> events, params Microsoft.AspNetCore.Testing.Tracing.EventAssert[] asserts) { }
|
||||
public static Microsoft.AspNetCore.Testing.Tracing.EventAssert Event(int id, string name, System.Diagnostics.Tracing.EventLevel level) { throw null; }
|
||||
public Microsoft.AspNetCore.Testing.Tracing.EventAssert Payload(string name, System.Action<object> asserter) { throw null; }
|
||||
public Microsoft.AspNetCore.Testing.Tracing.EventAssert Payload(string name, object expectedValue) { throw null; }
|
||||
}
|
||||
[Xunit.CollectionAttribute("Microsoft.AspNetCore.Testing.Tracing.EventSourceTestCollection")]
|
||||
public abstract partial class EventSourceTestBase : System.IDisposable
|
||||
{
|
||||
public const string CollectionName = "Microsoft.AspNetCore.Testing.Tracing.EventSourceTestCollection";
|
||||
public EventSourceTestBase() { }
|
||||
protected void CollectFrom(System.Diagnostics.Tracing.EventSource eventSource) { }
|
||||
protected void CollectFrom(string eventSourceName) { }
|
||||
public void Dispose() { }
|
||||
protected System.Collections.Generic.IReadOnlyList<System.Diagnostics.Tracing.EventWrittenEventArgs> GetEvents() { throw null; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,360 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
namespace Microsoft.AspNetCore.Testing
|
||||
{
|
||||
public partial class AspNetTestAssemblyRunner : Xunit.Sdk.XunitTestAssemblyRunner
|
||||
{
|
||||
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)) { }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
protected override System.Threading.Tasks.Task AfterTestAssemblyStartingAsync() { throw null; }
|
||||
protected override System.Threading.Tasks.Task BeforeTestAssemblyFinishedAsync() { throw null; }
|
||||
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; }
|
||||
}
|
||||
public partial class AspNetTestCollectionRunner : Xunit.Sdk.XunitTestCollectionRunner
|
||||
{
|
||||
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)) { }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
protected override System.Threading.Tasks.Task AfterTestCollectionStartingAsync() { throw null; }
|
||||
protected override System.Threading.Tasks.Task BeforeTestCollectionFinishedAsync() { throw null; }
|
||||
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; }
|
||||
}
|
||||
public partial class AspNetTestFramework : Xunit.Sdk.XunitTestFramework
|
||||
{
|
||||
public AspNetTestFramework(Xunit.Abstractions.IMessageSink messageSink) : base (default(Xunit.Abstractions.IMessageSink)) { }
|
||||
protected override Xunit.Abstractions.ITestFrameworkExecutor CreateExecutor(System.Reflection.AssemblyName assemblyName) { throw null; }
|
||||
}
|
||||
public partial class AspNetTestFrameworkExecutor : Xunit.Sdk.XunitTestFrameworkExecutor
|
||||
{
|
||||
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)) { }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
protected override void RunTestCases(System.Collections.Generic.IEnumerable<Xunit.Sdk.IXunitTestCase> testCases, Xunit.Abstractions.IMessageSink executionMessageSink, Xunit.Abstractions.ITestFrameworkExecutionOptions executionOptions) { }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=true)]
|
||||
public partial class AssemblyFixtureAttribute : System.Attribute
|
||||
{
|
||||
public AssemblyFixtureAttribute(System.Type fixtureType) { }
|
||||
public System.Type FixtureType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
[Xunit.Sdk.XunitTestCaseDiscovererAttribute("Microsoft.AspNetCore.Testing.ConditionalFactDiscoverer", "Microsoft.AspNetCore.Testing")]
|
||||
public partial class ConditionalFactAttribute : Xunit.FactAttribute
|
||||
{
|
||||
public ConditionalFactAttribute() { }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
[Xunit.Sdk.XunitTestCaseDiscovererAttribute("Microsoft.AspNetCore.Testing.ConditionalTheoryDiscoverer", "Microsoft.AspNetCore.Testing")]
|
||||
public partial class ConditionalTheoryAttribute : Xunit.TheoryAttribute
|
||||
{
|
||||
public ConditionalTheoryAttribute() { }
|
||||
}
|
||||
public partial class CultureReplacer : System.IDisposable
|
||||
{
|
||||
public CultureReplacer(System.Globalization.CultureInfo culture, System.Globalization.CultureInfo uiCulture) { }
|
||||
public CultureReplacer(string culture = "en-GB", string uiCulture = "en-US") { }
|
||||
public static System.Globalization.CultureInfo DefaultCulture { get { throw null; } }
|
||||
public static string DefaultCultureName { get { throw null; } }
|
||||
public static string DefaultUICultureName { get { throw null; } }
|
||||
public void Dispose() { }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=true, AllowMultiple=false)]
|
||||
public sealed partial class DockerOnlyAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public DockerOnlyAttribute() { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string SkipReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
|
||||
public partial class EnvironmentVariableSkipConditionAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public EnvironmentVariableSkipConditionAttribute(string variableName, params string[] values) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public bool RunOnMatch { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
public string SkipReason { get { throw null; } }
|
||||
}
|
||||
public static partial class ExceptionAssert
|
||||
{
|
||||
public static System.ArgumentException ThrowsArgument(System.Action testCode, string paramName, string exceptionMessage) { throw null; }
|
||||
public static System.Threading.Tasks.Task<System.ArgumentException> ThrowsArgumentAsync(System.Func<System.Threading.Tasks.Task> testCode, string paramName, string exceptionMessage) { throw null; }
|
||||
public static System.ArgumentNullException ThrowsArgumentNull(System.Action testCode, string paramName) { throw null; }
|
||||
public static System.ArgumentException ThrowsArgumentNullOrEmpty(System.Action testCode, string paramName) { throw null; }
|
||||
public static System.Threading.Tasks.Task<System.ArgumentException> ThrowsArgumentNullOrEmptyAsync(System.Func<System.Threading.Tasks.Task> testCode, string paramName) { throw null; }
|
||||
public static System.ArgumentException ThrowsArgumentNullOrEmptyString(System.Action testCode, string paramName) { throw null; }
|
||||
public static System.Threading.Tasks.Task<System.ArgumentException> ThrowsArgumentNullOrEmptyStringAsync(System.Func<System.Threading.Tasks.Task> testCode, string paramName) { throw null; }
|
||||
public static System.ArgumentOutOfRangeException ThrowsArgumentOutOfRange(System.Action testCode, string paramName, string exceptionMessage, object actualValue = null) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<TException> ThrowsAsync<TException>(System.Func<System.Threading.Tasks.Task> testCode, string exceptionMessage) where TException : System.Exception { throw null; }
|
||||
public static TException Throws<TException>(System.Action testCode) where TException : System.Exception { throw null; }
|
||||
public static TException Throws<TException>(System.Action testCode, string exceptionMessage) where TException : System.Exception { throw null; }
|
||||
public static TException Throws<TException>(System.Func<object> testCode, string exceptionMessage) where TException : System.Exception { throw null; }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method)]
|
||||
[Xunit.Sdk.TraitDiscovererAttribute("Microsoft.AspNetCore.Testing.FlakyTraitDiscoverer", "Microsoft.AspNetCore.Testing")]
|
||||
public sealed partial class FlakyAttribute : System.Attribute, Xunit.Sdk.ITraitAttribute
|
||||
{
|
||||
public FlakyAttribute(string gitHubIssueUrl, string firstFilter, params string[] additionalFilters) { }
|
||||
public System.Collections.Generic.IReadOnlyList<string> Filters { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string GitHubIssueUrl { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
public static partial class FlakyOn
|
||||
{
|
||||
public const string All = "All";
|
||||
public static partial class AzP
|
||||
{
|
||||
public const string All = "AzP:All";
|
||||
public const string Linux = "AzP:OS:Linux";
|
||||
public const string macOS = "AzP:OS:Darwin";
|
||||
public const string Windows = "AzP:OS:Windows_NT";
|
||||
}
|
||||
public static partial class Helix
|
||||
{
|
||||
public const string All = "Helix:Queue:All";
|
||||
public const string Centos7Amd64 = "Helix:Queue:Centos.7.Amd64.Open";
|
||||
public const string Debian8Amd64 = "Helix:Queue:Debian.8.Amd64.Open";
|
||||
public const string Debian9Amd64 = "Helix:Queue:Debian.9.Amd64.Open";
|
||||
public const string Fedora27Amd64 = "Helix:Queue:Fedora.27.Amd64.Open";
|
||||
public const string Fedora28Amd64 = "Helix:Queue:Fedora.28.Amd64.Open";
|
||||
public const string macOS1012Amd64 = "Helix:Queue:OSX.1012.Amd64.Open";
|
||||
public const string Redhat7Amd64 = "Helix:Queue:Redhat.7.Amd64.Open";
|
||||
public const string Ubuntu1604Amd64 = "Helix:Queue:Ubuntu.1604.Amd64.Open";
|
||||
public const string Ubuntu1810Amd64 = "Helix:Queue:Ubuntu.1810.Amd64.Open";
|
||||
public const string Windows10Amd64 = "Helix:Queue:Windows.10.Amd64.ClientRS4.VS2017.Open";
|
||||
}
|
||||
}
|
||||
public partial class FlakyTraitDiscoverer : Xunit.Sdk.ITraitDiscoverer
|
||||
{
|
||||
public FlakyTraitDiscoverer() { }
|
||||
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>> GetTraits(Xunit.Abstractions.IAttributeInfo traitAttribute) { throw null; }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
public partial class FrameworkSkipConditionAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public FrameworkSkipConditionAttribute(Microsoft.AspNetCore.Testing.RuntimeFrameworks excludedFrameworks) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string SkipReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
}
|
||||
public static partial class HelixQueues
|
||||
{
|
||||
public const string Centos7Amd64 = "Centos.7.Amd64.Open";
|
||||
public const string Debian8Amd64 = "Debian.8.Amd64.Open";
|
||||
public const string Debian9Amd64 = "Debian.9.Amd64.Open";
|
||||
public const string Fedora27Amd64 = "Fedora.27.Amd64.Open";
|
||||
public const string Fedora28Amd64 = "Fedora.28.Amd64.Open";
|
||||
public const string macOS1012Amd64 = "OSX.1012.Amd64.Open";
|
||||
public const string Redhat7Amd64 = "Redhat.7.Amd64.Open";
|
||||
public const string Ubuntu1604Amd64 = "Ubuntu.1604.Amd64.Open";
|
||||
public const string Ubuntu1810Amd64 = "Ubuntu.1810.Amd64.Open";
|
||||
public const string Windows10Amd64 = "Windows.10.Amd64.ClientRS4.VS2017.Open";
|
||||
}
|
||||
public static partial class HttpClientSlim
|
||||
{
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<System.Net.Sockets.Socket> GetSocket(System.Uri requestUri) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<string> GetStringAsync(string requestUri, bool validateCertificate = true) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<string> GetStringAsync(System.Uri requestUri, bool validateCertificate = true) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<string> PostAsync(string requestUri, System.Net.Http.HttpContent content, bool validateCertificate = true) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task<string> PostAsync(System.Uri requestUri, System.Net.Http.HttpContent content, bool validateCertificate = true) { throw null; }
|
||||
}
|
||||
public partial interface ITestCondition
|
||||
{
|
||||
bool IsMet { get; }
|
||||
string SkipReason { get; }
|
||||
}
|
||||
public partial interface ITestMethodLifecycle
|
||||
{
|
||||
System.Threading.Tasks.Task OnTestEndAsync(Microsoft.AspNetCore.Testing.TestContext context, System.Exception exception, System.Threading.CancellationToken cancellationToken);
|
||||
System.Threading.Tasks.Task OnTestStartAsync(Microsoft.AspNetCore.Testing.TestContext context, System.Threading.CancellationToken cancellationToken);
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
|
||||
public partial class MinimumOSVersionAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public MinimumOSVersionAttribute(Microsoft.AspNetCore.Testing.OperatingSystems operatingSystem, string minVersion) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string SkipReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
}
|
||||
[System.FlagsAttribute]
|
||||
public enum OperatingSystems
|
||||
{
|
||||
Linux = 1,
|
||||
MacOSX = 2,
|
||||
Windows = 4,
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
|
||||
public partial class OSSkipConditionAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public OSSkipConditionAttribute(Microsoft.AspNetCore.Testing.OperatingSystems operatingSystem, params string[] versions) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string SkipReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public partial class RepeatAttribute : System.Attribute
|
||||
{
|
||||
public RepeatAttribute(int runCount = 10) { }
|
||||
public int RunCount { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
public partial class RepeatContext
|
||||
{
|
||||
public RepeatContext(int limit) { }
|
||||
public static Microsoft.AspNetCore.Testing.RepeatContext Current { get { throw null; } }
|
||||
public int CurrentIteration { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
public int Limit { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Method)]
|
||||
public partial class ReplaceCultureAttribute : Xunit.Sdk.BeforeAfterTestAttribute
|
||||
{
|
||||
public ReplaceCultureAttribute() { }
|
||||
public ReplaceCultureAttribute(string currentCulture, string currentUICulture) { }
|
||||
public System.Globalization.CultureInfo Culture { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public System.Globalization.CultureInfo UICulture { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public override void After(System.Reflection.MethodInfo methodUnderTest) { }
|
||||
public override void Before(System.Reflection.MethodInfo methodUnderTest) { }
|
||||
}
|
||||
[System.FlagsAttribute]
|
||||
public enum RuntimeFrameworks
|
||||
{
|
||||
None = 0,
|
||||
Mono = 1,
|
||||
CLR = 2,
|
||||
CoreCLR = 4,
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false)]
|
||||
public partial class ShortClassNameAttribute : System.Attribute
|
||||
{
|
||||
public ShortClassNameAttribute() { }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
public partial class SkipOnCIAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public SkipOnCIAttribute(string issueUrl = "") { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string IssueUrl { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string SkipReason { get { throw null; } }
|
||||
public static string GetIfOnAzdo() { throw null; }
|
||||
public static string GetTargetHelixQueue() { throw null; }
|
||||
public static bool OnAzdo() { throw null; }
|
||||
public static bool OnCI() { throw null; }
|
||||
public static bool OnHelix() { throw null; }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
|
||||
public partial class SkipOnHelixAttribute : System.Attribute, Microsoft.AspNetCore.Testing.ITestCondition
|
||||
{
|
||||
public SkipOnHelixAttribute(string issueUrl) { }
|
||||
public bool IsMet { get { throw null; } }
|
||||
public string IssueUrl { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string Queues { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
|
||||
public string SkipReason { get { throw null; } }
|
||||
public static string GetTargetHelixQueue() { throw null; }
|
||||
public static bool OnHelix() { throw null; }
|
||||
}
|
||||
public partial class SkippedTestCase : Xunit.Sdk.XunitTestCase
|
||||
{
|
||||
[System.ObsoleteAttribute("Called by the de-serializer; should only be called by deriving classes for de-serialization purposes")]
|
||||
public SkippedTestCase() { }
|
||||
public SkippedTestCase(string skipReason, Xunit.Abstractions.IMessageSink diagnosticMessageSink, Xunit.Sdk.TestMethodDisplay defaultMethodDisplay, Xunit.Sdk.TestMethodDisplayOptions defaultMethodDisplayOptions, Xunit.Abstractions.ITestMethod testMethod, object[] testMethodArguments = null) { }
|
||||
public override void Deserialize(Xunit.Abstractions.IXunitSerializationInfo data) { }
|
||||
protected override string GetSkipReason(Xunit.Abstractions.IAttributeInfo factAttribute) { throw null; }
|
||||
public override void Serialize(Xunit.Abstractions.IXunitSerializationInfo data) { }
|
||||
}
|
||||
public static partial class TaskExtensions
|
||||
{
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public static System.Threading.Tasks.Task TimeoutAfter(this System.Threading.Tasks.Task task, System.TimeSpan timeout, [System.Runtime.CompilerServices.CallerFilePathAttribute]string filePath = null, [System.Runtime.CompilerServices.CallerLineNumberAttribute]int lineNumber = 0) { throw null; }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
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; }
|
||||
}
|
||||
public sealed partial class TestContext
|
||||
{
|
||||
public TestContext(System.Type testClass, object[] constructorArguments, System.Reflection.MethodInfo testMethod, object[] methodArguments, Xunit.Abstractions.ITestOutputHelper output) { }
|
||||
public object[] ConstructorArguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public Microsoft.AspNetCore.Testing.TestFileOutputContext FileOutput { get { throw null; } }
|
||||
public object[] MethodArguments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public Xunit.Abstractions.ITestOutputHelper Output { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public System.Type TestClass { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public System.Reflection.MethodInfo TestMethod { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
public sealed partial class TestFileOutputContext
|
||||
{
|
||||
public TestFileOutputContext(Microsoft.AspNetCore.Testing.TestContext parent) { }
|
||||
public string AssemblyOutputDirectory { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string TestClassName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string TestClassOutputDirectory { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string TestName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public static string GetAssemblyBaseDirectory(System.Reflection.Assembly assembly, string baseDirectory = null) { throw null; }
|
||||
public static string GetOutputDirectory(System.Reflection.Assembly assembly) { throw null; }
|
||||
public static string GetTestClassName(System.Type type) { throw null; }
|
||||
public static string GetTestMethodName(System.Reflection.MethodInfo method, object[] arguments) { throw null; }
|
||||
public string GetUniqueFileName(string prefix, string extension) { throw null; }
|
||||
public static string RemoveIllegalFileChars(string s) { throw null; }
|
||||
}
|
||||
public static partial class TestMethodExtensions
|
||||
{
|
||||
public static string EvaluateSkipConditions(this Xunit.Abstractions.ITestMethod testMethod) { throw null; }
|
||||
}
|
||||
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=true)]
|
||||
public partial class TestOutputDirectoryAttribute : System.Attribute
|
||||
{
|
||||
public TestOutputDirectoryAttribute(string targetFramework, string baseDirectory = null) { }
|
||||
public string BaseDirectory { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
public string TargetFramework { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
|
||||
}
|
||||
[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.")]
|
||||
public partial class TestPathUtilities
|
||||
{
|
||||
public TestPathUtilities() { }
|
||||
public static string GetRepoRootDirectory() { throw null; }
|
||||
public static string GetSolutionRootDirectory(string solution) { throw null; }
|
||||
}
|
||||
public static partial class TestPlatformHelper
|
||||
{
|
||||
public static bool IsLinux { get { throw null; } }
|
||||
public static bool IsMac { get { throw null; } }
|
||||
public static bool IsMono { get { throw null; } }
|
||||
public static bool IsWindows { get { throw null; } }
|
||||
}
|
||||
public static partial class WindowsVersions
|
||||
{
|
||||
public const string Win10 = "10.0";
|
||||
public const string Win10_19H2 = "10.0.18363";
|
||||
public const string Win10_20H1 = "10.0.18990";
|
||||
public const string Win10_RS4 = "10.0.17134";
|
||||
public const string Win2008R2 = "6.1";
|
||||
public const string Win7 = "6.1";
|
||||
public const string Win8 = "6.2";
|
||||
public const string Win81 = "6.3";
|
||||
}
|
||||
}
|
||||
namespace Microsoft.AspNetCore.Testing.Tracing
|
||||
{
|
||||
public partial class CollectingEventListener : System.Diagnostics.Tracing.EventListener
|
||||
{
|
||||
public CollectingEventListener() { }
|
||||
public void CollectFrom(System.Diagnostics.Tracing.EventSource eventSource) { }
|
||||
public void CollectFrom(string eventSourceName) { }
|
||||
public System.Collections.Generic.IReadOnlyList<System.Diagnostics.Tracing.EventWrittenEventArgs> GetEventsWritten() { throw null; }
|
||||
protected override void OnEventSourceCreated(System.Diagnostics.Tracing.EventSource eventSource) { }
|
||||
protected override void OnEventWritten(System.Diagnostics.Tracing.EventWrittenEventArgs eventData) { }
|
||||
}
|
||||
public partial class EventAssert
|
||||
{
|
||||
public EventAssert(int expectedId, string expectedName, System.Diagnostics.Tracing.EventLevel expectedLevel) { }
|
||||
public static void Collection(System.Collections.Generic.IEnumerable<System.Diagnostics.Tracing.EventWrittenEventArgs> events, params Microsoft.AspNetCore.Testing.Tracing.EventAssert[] asserts) { }
|
||||
public static Microsoft.AspNetCore.Testing.Tracing.EventAssert Event(int id, string name, System.Diagnostics.Tracing.EventLevel level) { throw null; }
|
||||
public Microsoft.AspNetCore.Testing.Tracing.EventAssert Payload(string name, System.Action<object> asserter) { throw null; }
|
||||
public Microsoft.AspNetCore.Testing.Tracing.EventAssert Payload(string name, object expectedValue) { throw null; }
|
||||
}
|
||||
[Xunit.CollectionAttribute("Microsoft.AspNetCore.Testing.Tracing.EventSourceTestCollection")]
|
||||
public abstract partial class EventSourceTestBase : System.IDisposable
|
||||
{
|
||||
public const string CollectionName = "Microsoft.AspNetCore.Testing.Tracing.EventSourceTestCollection";
|
||||
public EventSourceTestBase() { }
|
||||
protected void CollectFrom(System.Diagnostics.Tracing.EventSource eventSource) { }
|
||||
protected void CollectFrom(string eventSourceName) { }
|
||||
public void Dispose() { }
|
||||
protected System.Collections.Generic.IReadOnlyList<System.Diagnostics.Tracing.EventWrittenEventArgs> GetEvents() { throw null; }
|
||||
}
|
||||
}
|
||||
|
|
@ -9,9 +9,10 @@
|
|||
<!-- This is actually a library for test projects, not a test project. -->
|
||||
<IsUnitTestProject>false</IsUnitTestProject>
|
||||
<IsPackable>true</IsPackable>
|
||||
<HasReferenceAssembly>true</HasReferenceAssembly>
|
||||
<GenerateFrameworkReferenceAssembly>true</GenerateFrameworkReferenceAssembly>
|
||||
<!-- This package is internal, so we don't generate a package baseline. Always build against the latest dependencies. -->
|
||||
<UseLatestPackageReferences>true</UseLatestPackageReferences>
|
||||
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.AspNetCore.Testing" />
|
||||
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue