39 references to UnexpectedValue
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
7798throw TestExceptionUtilities.UnexpectedValue(outputKind);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenDynamicTests.cs (3)
621throw TestExceptionUtilities.UnexpectedValue(container.Name); 708throw TestExceptionUtilities.UnexpectedValue(member.Kind); 856throw TestExceptionUtilities.UnexpectedValue(member.Name);
CodeGen\CodeGenLocalFunctionTests.cs (1)
5930_ => throw TestExceptionUtilities.UnexpectedValue(methodName)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (25)
Attributes\AttributeTests_Dynamic.cs (1)
1109throw TestExceptionUtilities.UnexpectedValue(attr.AttributeClass.Name);
Attributes\AttributeTests_StructLayout.cs (3)
382throw TestExceptionUtilities.UnexpectedValue(name); 430throw TestExceptionUtilities.UnexpectedValue(name); 674throw TestExceptionUtilities.UnexpectedValue(name);
Attributes\AttributeTests_Synthesized.cs (3)
332throw TestExceptionUtilities.UnexpectedValue(member.Name); 454throw TestExceptionUtilities.UnexpectedValue(member.Name); 509throw TestExceptionUtilities.UnexpectedValue(member.Name);
Attributes\AttributeTests_Tuples.cs (3)
912throw TestExceptionUtilities.UnexpectedValue(name); 1009throw TestExceptionUtilities.UnexpectedValue(name); 1033throw TestExceptionUtilities.UnexpectedValue(t.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)
6174_ => throw TestExceptionUtilities.UnexpectedValue(methodName)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\PartialPropertiesTests.cs (1)
858throw TestExceptionUtilities.UnexpectedValue(entryPointName);
Symbols\StaticAbstractMembersInInterfacesTests.cs (2)
10350throw TestExceptionUtilities.UnexpectedValue(op); 28319_ => 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);