7 references to Single
Microsoft.AspNetCore.Razor.Test.Common.Cohosting (1)
TestFileSystem.cs (1)
24
=> files.AssumeNotNull().
Single
(f => FilePathNormalizingComparer.Instance.Equals(f.filePath, filePath)).contents;
Microsoft.AspNetCore.Razor.Utilities.Shared.UnitTests (4)
ReadOnlyListExtensionsTests.cs (4)
169
var exception1 = Assert.Throws<InvalidOperationException>(() => readOnlyList.
Single
(IsOdd));
175
Assert.Equal(19, readOnlyList.
Single
(IsOdd));
180
var exception2 = Assert.Throws<InvalidOperationException>(() => readOnlyList.
Single
(IsOdd));
187
Assert.Equal(42, readOnlyList.
Single
(IsEven));
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Components\ComponentLoweringPass.cs (1)
66
reference.Replace(RewriteAsComponent(node, node.TagHelpers.
Single
(n => n.Kind == TagHelperKind.Component)));
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
Cohost\RazorRefactorNotifyServiceTest.cs (1)
112
var csharpPosition = additionalFiles.
Single
(d => d.contents.Positions.Length == 1).contents.Position;