51 references to UnexpectedValue
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
7798throw TestExceptionUtilities.UnexpectedValue(outputKind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (20)
Attributes\AttributeTests_StructLayout.cs (2)
382throw TestExceptionUtilities.UnexpectedValue(name); 430throw TestExceptionUtilities.UnexpectedValue(name);
Attributes\AttributeTests_Synthesized.cs (1)
332throw TestExceptionUtilities.UnexpectedValue(member.Name);
Attributes\AttributeTests_Tuples.cs (2)
912throw TestExceptionUtilities.UnexpectedValue(name); 1009throw TestExceptionUtilities.UnexpectedValue(name);
Attributes\AttributeTests_WellKnownAttributes.cs (15)
1123throw TestExceptionUtilities.UnexpectedValue(name); 1179throw TestExceptionUtilities.UnexpectedValue(completeName); 1208throw TestExceptionUtilities.UnexpectedValue(name); 2183throw TestExceptionUtilities.UnexpectedValue(name); 2349throw TestExceptionUtilities.UnexpectedValue(name); 2398throw TestExceptionUtilities.UnexpectedValue(name); 2661throw TestExceptionUtilities.UnexpectedValue(methodName); 2840throw TestExceptionUtilities.UnexpectedValue(entryPointName); 3097default: throw TestExceptionUtilities.UnexpectedValue(methodName); 3164default: throw TestExceptionUtilities.UnexpectedValue(methodName); 3327throw TestExceptionUtilities.UnexpectedValue(name); 3484throw TestExceptionUtilities.UnexpectedValue(name); 4730throw TestExceptionUtilities.UnexpectedValue(name); 4759throw TestExceptionUtilities.UnexpectedValue(name); 4844throw TestExceptionUtilities.UnexpectedValue(name);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IAttributeOperation.cs (1)
808_ => throw TestExceptionUtilities.UnexpectedValue(attributeTarget),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
6119_ => throw TestExceptionUtilities.UnexpectedValue(methodName)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\PartialPropertiesTests.cs (1)
858throw TestExceptionUtilities.UnexpectedValue(entryPointName);
Symbols\StaticAbstractMembersInInterfacesTests.cs (2)
10368throw TestExceptionUtilities.UnexpectedValue(op); 27781_ => throw TestExceptionUtilities.UnexpectedValue(op)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
EmitMetadataTestBase.cs (1)
155throw TestExceptionUtilities.UnexpectedValue(token.Kind);
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
76throw TestExceptionUtilities.UnexpectedValue(operationContext.Operation);
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
64throw TestExceptionUtilities.UnexpectedValue(operationContext.Operation);
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
58throw TestExceptionUtilities.UnexpectedValue(operationContext.Operation);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
6828Throw TestExceptionUtilities.UnexpectedValue(outputKind)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (18)
Attributes\AttributeTests_StructLayout.vb (1)
612Throw TestExceptionUtilities.UnexpectedValue(name)
Attributes\AttributeTests_Synthesized.vb (3)
389Throw TestExceptionUtilities.UnexpectedValue(member.Name) 434Throw TestExceptionUtilities.UnexpectedValue(member.Name) 559Throw TestExceptionUtilities.UnexpectedValue(member.Name)
Attributes\AttributeTests_Tuples.vb (2)
780Throw TestExceptionUtilities.UnexpectedValue(t.Name) 885Throw TestExceptionUtilities.UnexpectedValue(t.Name)
Attributes\AttributeTests_WellKnownAttributes.vb (11)
1438Throw TestExceptionUtilities.UnexpectedValue(methodName) 2067Throw TestExceptionUtilities.UnexpectedValue(peReader.GetString(row.Name)) 2349Throw TestExceptionUtilities.UnexpectedValue(name) 2568Throw TestExceptionUtilities.UnexpectedValue(name) 2845Throw TestExceptionUtilities.UnexpectedValue(entryPointName) 2999Throw TestExceptionUtilities.UnexpectedValue(name) 3049Throw TestExceptionUtilities.UnexpectedValue(name) 3218Throw TestExceptionUtilities.UnexpectedValue(name) 3239Throw TestExceptionUtilities.UnexpectedValue(name) 3255Throw TestExceptionUtilities.UnexpectedValue(name) 3344Throw TestExceptionUtilities.UnexpectedValue(name)
Emit\CompilationEmitTests.vb (1)
2582Throw TestExceptionUtilities.UnexpectedValue(entry.ParentKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\ComClassTests.vb (1)
75Throw TestExceptionUtilities.UnexpectedValue(member.Kind)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_IAttributeOperation.vb (1)
655Throw TestExceptionUtilities.UnexpectedValue(attributeTarget)