11 references to Single
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (4)
Legacy\ImplicitExpressionEditHandlerTest.cs (4)
300var token = GetTokens(new SourceLocation(4, 1, 2), "hello").Single(); 313var token = GetTokens(new SourceLocation(4, 1, 2), "hello").Single(); 326var token = GetTokens(new SourceLocation(4, 1, 2), "hello").Single(); 341var token = GetTokens(new SourceLocation(4, 1, 2), "hello").Single();
Microsoft.AspNetCore.Razor.Test.Common.Tooling (1)
AssertExtensions.cs (1)
55var documentId = DocumentId.CreateNewId(solution.ProjectIds.Single());
Microsoft.AspNetCore.Razor.Utilities.Shared.UnitTests (3)
ReadOnlyListExtensionsTests.cs (3)
146var exception1 = Assert.Throws<InvalidOperationException>(() => readOnlyList.Single()); 152Assert.Equal(19, readOnlyList.Single()); 157var exception2 = Assert.Throws<InvalidOperationException>(() => readOnlyList.Single());
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Components\ComponentRuntimeNodeWriter.cs (1)
273var stringContent = ((IntermediateToken)node.Children.Single()).Content;
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
Cohost\BrokeredServiceFactory.cs (1)
44var genericType = type.BaseType.GetGenericArguments().Single();
Microsoft.VisualStudioCode.RazorExtension (1)
Services\InProcServiceFactory.cs (1)
41var genericType = type.BaseType.GetGenericArguments().Single();