Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw committed Jun 5, 2019
1 parent 97f0b4e commit f4b4732
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/OmniSharp.Roslyn.CSharp.Tests/BufferManagerFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,16 @@ public async Task UpdateBufferIgnoresVoidRequests()
{
using (var host = CreateOmniSharpHost(new TestFile("test.cs", "class C {}")))
{
Assert.Equal(2, host.Workspace.CurrentSolution.Projects.Count());
Assert.Single(host.Workspace.CurrentSolution.Projects);
Assert.Single(host.Workspace.CurrentSolution.Projects.ElementAt(0).Documents);
Assert.Single(host.Workspace.CurrentSolution.Projects.ElementAt(1).Documents);

await host.Workspace.BufferManager.UpdateBufferAsync(new Request() { });
Assert.Equal(2, host.Workspace.CurrentSolution.Projects.Count());
Assert.Single(host.Workspace.CurrentSolution.Projects);
Assert.Single(host.Workspace.CurrentSolution.Projects.ElementAt(0).Documents);
Assert.Single(host.Workspace.CurrentSolution.Projects.ElementAt(1).Documents);

await host.Workspace.BufferManager.UpdateBufferAsync(new Request() { FileName = "", Buffer = "enum E {}" });
Assert.Equal(2, host.Workspace.CurrentSolution.Projects.Count());
Assert.Single(host.Workspace.CurrentSolution.Projects);
Assert.Single(host.Workspace.CurrentSolution.Projects.ElementAt(0).Documents);
Assert.Single(host.Workspace.CurrentSolution.Projects.ElementAt(1).Documents);
}
}

Expand Down

0 comments on commit f4b4732

Please # to comment.