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