Exemplo n.º 1
0
        public void HostManagerHieruisticForMvcViews(string path)
        {
            // Act
            RazorRuntime runtime;
            var          guess = HostManager.GuessHost(Directory.GetCurrentDirectory(), path, out runtime);

            // Assert
            Assert.Equal("MvcView", guess);
        }
Exemplo n.º 2
0
        public void HostManagerHieruisticForMvcHelperInViewsFolder(string path, string expected, RazorRuntime expectedRuntime)
        {
            // Act
            RazorRuntime runtime;
            var          guess = HostManager.GuessHost(Directory.GetCurrentDirectory(), path, out runtime);

            // Assert
            Assert.Equal(expected, guess);
            Assert.Equal(expectedRuntime, runtime);
        }