Verify 30754 is fixed

closes #30754
上级 af7c8c91
......@@ -2032,6 +2032,22 @@ protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpan(CSh
}
#endregion
#region Theory Helpers
public static IEnumerable<object[]> NonNullTypesTrueAndFalse
{
get
{
return new List<object[]>()
{
new object[] { WithNonNullTypesTrue() },
new object[] { WithNonNullTypesFalse() }
};
}
}
#endregion
protected static readonly string s_IAsyncEnumerable = @"
namespace System.Collections.Generic
{
......
......@@ -1367,8 +1367,9 @@ .maxstack 1
// References to missing assembly from PDB custom debug info.
[WorkItem(13275, "https://github.com/dotnet/roslyn/issues/13275")]
[Fact]
public void CorLibWithAssemblyReferences_Pdb()
[Theory]
[MemberData(nameof(NonNullTypesTrueAndFalse))]
public void CorLibWithAssemblyReferences_Pdb(CSharpCompilationOptions options)
{
string sourceLib =
@"namespace Namespace
......@@ -1397,7 +1398,7 @@ public class Void : Object { }
}";
// Create a custom corlib with a reference to compilation
// above and a reference to the actual mscorlib.
var compCorLib = CreateEmptyCompilation(sourceCorLib, assemblyName: CorLibAssemblyName, references: new[] { MscorlibRef, refLib });
var compCorLib = CreateEmptyCompilation(sourceCorLib, assemblyName: CorLibAssemblyName, references: new[] { MscorlibRef, refLib }, options: options);
compCorLib.VerifyDiagnostics();
var objectType = compCorLib.SourceAssembly.GlobalNamespace.GetMember<NamedTypeSymbol>("System.Object");
Assert.NotNull(objectType.BaseType());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册