7 references to CompileAndVerifyException
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenIterators.cs (1)
1081CompileAndVerifyException<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)
6940CompileAndVerifyException<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify: Verification.Fails); 7011CompileAndVerifyException<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify: Verification.Fails); 7212CompileAndVerifyException<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify: Verification.Fails);