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