5 overrides of Exists
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\TestRazorProjectItem.cs (1)
27public override bool Exists => true;
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\DefaultImportProjectItem.cs (1)
20public override bool Exists => true;
Language\DefaultRazorProjectItem.cs (1)
61public override bool Exists => _fileInfo?.Exists ?? System.IO.File.Exists(PhysicalPath);
Language\NotFoundProjectItem.cs (1)
28public override bool Exists => false;
SourceGenerators\SourceGeneratorProjectItem.cs (1)
45public override bool Exists => true;
25 references to Exists
Microsoft.AspNetCore.Razor.Language.UnitTests (23)
DefaultRazorProjectFileSystemTest.cs (3)
263Assert.True(item.Exists); 283Assert.True(item.Exists); 301Assert.False(item.Exists);
IntegrationTests\CodeGenerationIntegrationTest.cs (1)
429foreach (var import in projectEngine.GetImports(projectItem, static i => i.Exists))
RazorProjectEngineTest.cs (1)
129var nonExistentItem = new MockRepository(MockBehavior.Strict).OneOf<RazorProjectItem>(item => item.Exists == false);
RazorProjectFileSystemTest.cs (13)
170Assert.True(item.Exists); 175Assert.False(item.Exists); 180Assert.True(item.Exists); 185Assert.False(item.Exists); 190Assert.False(item.Exists); 214Assert.False(item.Exists); 219Assert.True(item.Exists); 224Assert.False(item.Exists); 229Assert.False(item.Exists); 253Assert.False(item.Exists); 258Assert.False(item.Exists); 282Assert.False(item.Exists); 307projectItem.SetupGet(f => f.Exists).Returns(true);
VirtualRazorProjectFileSystemTest.cs (5)
26Assert.False(result.Exists); 73Assert.False(actual.Exists); 88Assert.False(actual.Exists); 103Assert.False(actual.Exists); 193item => Assert.False(item.Exists),
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\IntegrationTests\IntegrationTestBase.cs (1)
789if (import.Exists)
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorProjectEngine.cs (1)
515if (importItem.Exists)