Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }