Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
7cefd3e2
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7cefd3e2
编写于
10月 10, 2018
作者:
J
Julien Couvreur
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Disable tests with TasksExtensions on Core
上级
1c2826ca
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
58 addition
and
58 deletion
+58
-58
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenAsyncDisposableTests.cs
...s/CSharp/Test/Emit/CodeGen/CodeGenAsyncDisposableTests.cs
+16
-16
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenAsyncForeachTests.cs
...lers/CSharp/Test/Emit/CodeGen/CodeGenAsyncForeachTests.cs
+28
-28
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenAsyncIteratorTests.cs
...ers/CSharp/Test/Emit/CodeGen/CodeGenAsyncIteratorTests.cs
+14
-14
未找到文件。
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenAsyncDisposableTests.cs
浏览文件 @
7cefd3e2
...
...
@@ -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
=
@"
...
...
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenAsyncForeachTests.cs
浏览文件 @
7cefd3e2
...
...
@@ -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
=
@"
...
...
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenAsyncIteratorTests.cs
浏览文件 @
7cefd3e2
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录