提交 7cefd3e2 编写于 作者: J Julien Couvreur

Disable tests with TasksExtensions on Core

上级 1c2826ca
......@@ -156,7 +156,7 @@ public static async Task Main()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestInAsyncAnonymousMethod()
{
string source = @"
......@@ -298,7 +298,7 @@ public void Dispose()
comp.VerifyDiagnostics();
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestInCatchBlock()
{
string source = @"
......@@ -413,7 +413,7 @@ async System.Threading.Tasks.Task innerLocal()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestInFinallyBlock()
{
string source = @"
......@@ -448,7 +448,7 @@ public async System.Threading.Tasks.ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "using dispose_start dispose_end return");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestRegularAwaitInFinallyBlock()
{
string source = @"
......@@ -731,7 +731,7 @@ public static async System.Threading.Tasks.Task<int> Main()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithDeclaration()
{
string source = @"
......@@ -761,7 +761,7 @@ public void Dispose()
CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestIAsyncDisposableInRegularUsing()
{
string source = @"
......@@ -791,7 +791,7 @@ public void Dispose()
CompileAndVerify(comp, expectedOutput: "body Dispose");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithDynamicDeclaration()
{
string source = @"
......@@ -818,7 +818,7 @@ public System.Threading.Tasks.ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "body DisposeAsync end");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithExpression()
{
string source = @"
......@@ -992,7 +992,7 @@ .maxstack 3
}");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithNullExpression()
{
string source = @"
......@@ -1035,7 +1035,7 @@ public static async System.Threading.Tasks.Task Main()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithDynamicExpression()
{
string source = @"
......@@ -1062,7 +1062,7 @@ public System.Threading.Tasks.ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithStructExpression()
{
string source = @"
......@@ -1231,7 +1231,7 @@ .maxstack 3
}");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithNullableExpression()
{
string source = @"
......@@ -1258,7 +1258,7 @@ public System.Threading.Tasks.ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithNullNullableExpression()
{
string source = @"
......@@ -1321,7 +1321,7 @@ async void L1()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithMultipleResources()
{
string source = @"
......@@ -1354,7 +1354,7 @@ public async System.Threading.Tasks.ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "ctor1 ctor2 body dispose2_start dispose2_end dispose1_start dispose1_end");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithMultipleResourcesAndException()
{
string source = @"
......@@ -1393,7 +1393,7 @@ public System.Threading.Tasks.ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "ctor1 ctor2 body dispose2 dispose1 caught");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithMultipleResourcesAndExceptionInSecondResource()
{
string source = @"
......
......@@ -95,7 +95,7 @@ public static async System.Threading.Tasks.Task Main()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithUIntToIntConversion()
{
string source = @"
......@@ -734,7 +734,7 @@ class Element
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithExplicitlyConvertibleElementType()
{
string source = @"
......@@ -793,7 +793,7 @@ class Element
verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithCaptureOfIterationVariable()
{
string source = @"
......@@ -835,7 +835,7 @@ public async ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "Got(1) Got(2) Captured(1)", verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithGenericIterationVariable()
{
string source = @"
......@@ -893,7 +893,7 @@ public async ValueTask DisposeAsync()
verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithThrowingGetAsyncEnumerator()
{
string source = @"
......@@ -933,7 +933,7 @@ public ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "exception", verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithThrowingMoveNextAsync()
{
string source = @"
......@@ -976,7 +976,7 @@ public async ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "dispose exception", verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithThrowingCurrent()
{
string source = @"
......@@ -1023,7 +1023,7 @@ public async ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "wait dispose exception", verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithThrowingDisposeAsync()
{
string source = @"
......@@ -1751,7 +1751,7 @@ public sealed class Enumerator
Assert.Equal(default, model.GetForEachStatementInfo(foreachSyntax));
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithPattern_RefStruct()
{
string source = @"
......@@ -1798,7 +1798,7 @@ public S(int i)
CompileAndVerify(comp, expectedOutput: "1 2 Done");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithPattern_RefReturningCurrent()
{
string source = @"
......@@ -1880,7 +1880,7 @@ public System.Threading.Tasks.Task<bool> MoveNextAsync()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithPattern_WithStruct_MoveNextAsyncReturnsTask()
{
string source = @"
......@@ -1934,7 +1934,7 @@ public async ValueTask DisposeAsync()
verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithPattern_MoveNextAsyncReturnsValueTask()
{
string source = @"
......@@ -1997,7 +1997,7 @@ public async ValueTask DisposeAsync()
Assert.True(internalInfo.NeedsDisposeMethod);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithPattern_WithUnsealed()
{
string source = @"
......@@ -2359,7 +2359,7 @@ .maxstack 3
", sequencePoints: "C+<Main>d__0.MoveNext", source: source + s_interfaces);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithPattern_WithIAsyncDisposable()
{
string source = @"
......@@ -2524,7 +2524,7 @@ IAsyncEnumerator<int> IAsyncEnumerable<int>.GetAsyncEnumerator()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithInterface()
{
string source = @"
......@@ -2596,7 +2596,7 @@ public async ValueTask DisposeAsync()
Assert.True(internalInfo.NeedsDisposeMethod);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithInterface_WithEarlyCompletion1()
{
string source = @"
......@@ -2648,7 +2648,7 @@ public ValueTask DisposeAsync()
CompileAndVerify(comp, expectedOutput: "NextAsync(2) Current(3) Got(3) NextAsync(3) Dispose(4) Done", verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithInterface_WithBreakAndContinue()
{
string source = @"
......@@ -2704,7 +2704,7 @@ public async ValueTask DisposeAsync()
verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithInterface_WithGoto()
{
string source = @"
......@@ -2761,7 +2761,7 @@ public async ValueTask DisposeAsync()
verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithInterface_WithStruct()
{
string source = @"
......@@ -2866,7 +2866,7 @@ IAsyncEnumerator<int> IAsyncEnumerable<int>.GetAsyncEnumerator()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithNullCollection()
{
string source = @"
......@@ -2906,7 +2906,7 @@ internal struct AsyncEnumerator : IAsyncEnumerator<int>
CompileAndVerify(comp, expectedOutput: "Success", verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestInCatch()
{
string source = @"
......@@ -2999,7 +2999,7 @@ IAsyncEnumerator<int> IAsyncEnumerable<int>.GetAsyncEnumerator()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithConversionToElement()
{
string source = @"
......@@ -3080,7 +3080,7 @@ class Element
Assert.True(internalInfo.NeedsDisposeMethod);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithNullableCollection()
{
string source = @"
......@@ -3153,7 +3153,7 @@ public async ValueTask DisposeAsync()
Assert.True(internalInfo.NeedsDisposeMethod);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithNullableCollection2()
{
string source = @"
......@@ -3187,7 +3187,7 @@ IAsyncEnumerator<int> IAsyncEnumerable<int>.GetAsyncEnumerator()
CompileAndVerify(comp, expectedOutput: "Success", verify: Verification.Skipped);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithInterfaceAndDeconstruction()
{
string source = @"
......@@ -3291,7 +3291,7 @@ public static class Extensions
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithPatternAndDeconstructionOfTuple()
{
string source = @"
......@@ -3357,7 +3357,7 @@ public async ValueTask DisposeAsync()
Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithInterfaceAndDeconstruction_ManualIteration()
{
string source = @"
......@@ -3515,7 +3515,7 @@ public IAsyncEnumerator<int> GetAsyncEnumerator()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void TestWithGenericCollection()
{
string source = @"
......
......@@ -137,7 +137,7 @@ static async System.Collections.Generic.IAsyncEnumerable<int> M()
Assert.True(m.IsIterator);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AttributesSynthesized()
{
string source = @"
......@@ -647,7 +647,7 @@ async System.Collections.Generic.IAsyncEnumerable<int> M2()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void CallingMoveNextAsyncTwice()
{
string source = @"
......@@ -1113,7 +1113,7 @@ static async System.Threading.Tasks.Task Main()
CompileAndVerify(comp, expectedOutput: "0 1 2 3 4 5");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithGenericReturnFromContainingType()
{
string source = @"
......@@ -1146,7 +1146,7 @@ static async System.Threading.Tasks.Task Main()
CompileAndVerify(comp, expectedOutput: "0 1 2 3 4 5");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithParameter()
{
string source = @"
......@@ -1178,7 +1178,7 @@ static async System.Threading.Tasks.Task Main()
CompileAndVerify(comp, expectedOutput: "Start p:10 p:11 Value p:12 End");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithThis()
{
string source = @"
......@@ -1232,7 +1232,7 @@ public static async System.Collections.Generic.IAsyncEnumerable<int> M()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithAwaitCompletedAndOneYieldAndOneInvocation()
{
string source = @"
......@@ -1262,7 +1262,7 @@ static async System.Threading.Tasks.Task Main()
CompileAndVerify(comp, expectedOutput: "0 1 2 3 4 Done");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithAwaitCompletedAndTwoYields()
{
string source = @"
......@@ -1293,7 +1293,7 @@ static async System.Threading.Tasks.Task Main()
CompileAndVerify(comp, expectedOutput: "0 1 2 3 4 5 Done");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithYieldAndAwait()
{
string source = @"
......@@ -1322,7 +1322,7 @@ static async System.Threading.Tasks.Task Main()
CompileAndVerify(comp, expectedOutput: "0 1 2 3 Done");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithAwaitCompletedAndYieldBreak()
{
string source = @"
......@@ -1351,7 +1351,7 @@ static async System.Threading.Tasks.Task Main()
CompileAndVerify(comp, expectedOutput: "0 1 2 Done");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithAwaitCompletedAndYieldBreakAndYieldReturn()
{
string source = @"
......@@ -1385,7 +1385,7 @@ static async System.Threading.Tasks.Task Main()
CompileAndVerify(comp, expectedOutput: "0 1 2 3 Done");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithCustomCode()
{
verify(new[] { AwaitSlow, Write, Yield, AwaitSlow });
......@@ -1499,7 +1499,7 @@ async System.Collections.Generic.IAsyncEnumerable<int> local()
}
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithAwaitAndYieldAndAwait()
{
string source = @"
......@@ -1549,7 +1549,7 @@ async System.Collections.Generic.IAsyncEnumerable<int> M()
);
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithYieldReturnOnly()
{
string source = @"
......@@ -1576,7 +1576,7 @@ public static async System.Threading.Tasks.Task Main()
CompileAndVerify(comp, expectedOutput: "1");
}
[Fact]
[ConditionalFact(typeof(WindowsDesktopOnly))]
public void AsyncIteratorWithYieldBreakOnly()
{
string source = @"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册