Verify 30755 is fixed

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