diff --git a/tests/OmniSharp.Cake.Tests/LineIndexHelperFacts.cs b/tests/OmniSharp.Cake.Tests/LineIndexHelperFacts.cs index 3dc6f031f4..4446050a52 100644 --- a/tests/OmniSharp.Cake.Tests/LineIndexHelperFacts.cs +++ b/tests/OmniSharp.Cake.Tests/LineIndexHelperFacts.cs @@ -7,6 +7,7 @@ using Microsoft.CodeAnalysis.Text; using Microsoft.Extensions.Logging; using OmniSharp.Cake.Utilities; +using OmniSharp.FileWatching; using OmniSharp.Services; using OmniSharp.Utilities; using Xunit; @@ -59,7 +60,7 @@ private static OmniSharpWorkspace CreateSimpleWorkspace(string fileName, string var workspace = new OmniSharpWorkspace( new HostServicesAggregator( Enumerable.Empty(), new LoggerFactory()), - new LoggerFactory(), null); + new LoggerFactory(), new DummyFileSystemWatcher()); var projectInfo = ProjectInfo.Create(ProjectId.CreateNewId(), VersionStamp.Create(), "ProjectNameVal", "AssemblyNameVal", LanguageNames.CSharp); @@ -147,5 +148,16 @@ public async Task TranslateFromGenerated_Should_Translate_To_Negative_If_Outside Assert.Equal(expected, actualIndex); } + + private class DummyFileSystemWatcher : IFileSystemWatcher + { + public void Watch(string pathOrExtension, FileSystemNotificationCallback callback) + { + } + + public void WatchDirectories(FileSystemNotificationCallback callback) + { + } + } } }