Delete failing test that validates a bad assumption

This commit is contained in:
David Wengier 2024-09-19 14:19:59 +10:00
Родитель 3feef4dff7
Коммит cfd20a8d98
1 изменённых файлов: 0 добавлений и 19 удалений

Просмотреть файл

@ -1034,25 +1034,6 @@ public class RazorProjectServiceTest(ITestOutputHelper testOutput) : LanguageSer
Assert.Equal(2, latestVersion);
}
[Fact]
public async Task UpdateDocument_ThrowsForUnknownDocument()
{
// Arrange
const string ProjectFilePath = "C:/path/to/project.csproj";
const string IntermediateOutputPath = "C:/path/to/obj";
const string RootNamespace = "TestRootNamespace";
const string DocumentFilePath = "C:/path/to/document.cshtml";
await _projectService.AddProjectAsync(
ProjectFilePath, IntermediateOutputPath, RazorConfiguration.Default, RootNamespace, displayName: null, DisposalToken);
// Act
await Assert.ThrowsAnyAsync<InvalidOperationException>(() =>
{
return _projectService.UpdateDocumentAsync(DocumentFilePath, s_emptyText.Replace(0, 0, "Hello World"), DisposalToken);
});
}
[Fact]
public async Task AddProject_AddsProjectWithDefaultConfiguration()
{