public void UpdateRazorHostProject_UnsupportedProjectNoops() { // Arrange var projectService = new Mock <TextBufferProjectService>(); projectService.Setup(p => p.IsSupportedProject(It.IsAny <object>())) .Returns(false); var dotNetProjectHost = new DefaultDotNetProjectHost( Dispatcher, Mock.Of <VisualStudioMacWorkspaceAccessor>(), projectService.Object); // Act & Assert dotNetProjectHost.UpdateRazorHostProject(); }
public void UpdateRazorHostProject_UnsupportedProjectNoops() { // Arrange var projectService = new Mock <TextBufferProjectService>(MockBehavior.Strict); projectService.Setup(p => p.IsSupportedProject(It.IsAny <object>())) .Returns(false); var dotNetProjectHost = new DefaultDotNetProjectHost( Dispatcher, Mock.Of <VisualStudioMacWorkspaceAccessor>(MockBehavior.Strict), projectService.Object, TestProjectConfigurationFilePathStore.Instance, TestVSLanguageServerFeatureOptions.Instance); // Act & Assert dotNetProjectHost.UpdateRazorHostProject(); }