Verify 30755 is fixed

closes #30755
上级 fe641c33
...@@ -2034,14 +2034,26 @@ protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpan(CSh ...@@ -2034,14 +2034,26 @@ protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpan(CSh
#region Theory Helpers #region Theory Helpers
public static IEnumerable<object[]> NonNullTypesTrueAndFalse public static IEnumerable<object[]> NonNullTypesTrueAndFalseDebugDll
{ {
get get
{ {
return new List<object[]>() return new List<object[]>()
{ {
new object[] { WithNonNullTypesTrue() }, new object[] { WithNonNullTypesTrue(TestOptions.DebugDll) },
new object[] { WithNonNullTypesFalse() } new object[] { WithNonNullTypesFalse(TestOptions.DebugDll) }
};
}
}
public static IEnumerable<object[]> NonNullTypesTrueAndFalseReleaseDll
{
get
{
return new List<object[]>()
{
new object[] { WithNonNullTypesTrue(TestOptions.ReleaseDll) },
new object[] { WithNonNullTypesFalse(TestOptions.ReleaseDll) }
}; };
} }
} }
......
...@@ -1628,8 +1628,9 @@ .maxstack 1 ...@@ -1628,8 +1628,9 @@ .maxstack 1
/// Should not include "this" inside display class /// Should not include "this" inside display class
/// instance method if "this" is not captured. /// instance method if "this" is not captured.
/// </summary> /// </summary>
[Fact] [Theory]
public void NoThisInsideDisplayClassInstanceMethod() [MemberData(nameof(NonNullTypesTrueAndFalseDebugDll))]
public void NoThisInsideDisplayClassInstanceMethod(CSharpCompilationOptions options)
{ {
var source = var source =
@"using System; @"using System;
...@@ -1647,7 +1648,7 @@ class C ...@@ -1647,7 +1648,7 @@ class C
f(2)(x); f(2)(x);
} }
}"; }";
var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); var compilation0 = CreateCompilation(source, options: options);
WithRuntimeInstance(compilation0, runtime => WithRuntimeInstance(compilation0, runtime =>
{ {
var context = CreateMethodContext(runtime, "C.<>c__DisplayClass0_0.<M>b__0"); var context = CreateMethodContext(runtime, "C.<>c__DisplayClass0_0.<M>b__0");
......
...@@ -1368,7 +1368,7 @@ .maxstack 1 ...@@ -1368,7 +1368,7 @@ .maxstack 1
// References to missing assembly from PDB custom debug info. // References to missing assembly from PDB custom debug info.
[WorkItem(13275, "https://github.com/dotnet/roslyn/issues/13275")] [WorkItem(13275, "https://github.com/dotnet/roslyn/issues/13275")]
[Theory] [Theory]
[MemberData(nameof(NonNullTypesTrueAndFalse))] [MemberData(nameof(NonNullTypesTrueAndFalseReleaseDll))]
public void CorLibWithAssemblyReferences_Pdb(CSharpCompilationOptions options) public void CorLibWithAssemblyReferences_Pdb(CSharpCompilationOptions options)
{ {
string sourceLib = string sourceLib =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册