7 references to CompileAndVerifyException
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenIterators.cs (1)
1081
CompileAndVerifyException
<InvalidOperationException>(source, expectedMessage: "Nullable object must have a value.").
CodeGen\CodeGenThrowTests.cs (3)
27
var compilation =
CompileAndVerifyException
<Exception>(source, "TestThrowNewExpression");
51
var compilation =
CompileAndVerifyException
<Exception>(source, "TestThrowLocalExpression");
74
var compilation =
CompileAndVerifyException
<NullReferenceException>(source);
CodeGen\UnsafeTests.cs (3)
6940
CompileAndVerifyException
<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify: Verification.Fails);
7011
CompileAndVerifyException
<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify: Verification.Fails);
7212
CompileAndVerifyException
<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify: Verification.Fails);