public void GetViewStartLocations_ReturnsEmptySequenceIfViewPathIsEmpty(string viewPath) { // Arrange var appPath = @"x:\test"; var provider = new ViewStartProvider(GetAppEnv(appPath), Mock.Of<IRazorPageFactory>()); // Act var result = provider.GetViewStartLocations(viewPath); // Assert Assert.Empty(result); }
public void GetViewStartLocations_ReturnsEmptySequenceIfViewPathIsEmpty(string viewPath) { // Arrange var appPath = @"x:\test"; var provider = new ViewStartProvider(GetAppEnv(appPath), Mock.Of <IRazorPageFactory>()); // Act var result = provider.GetViewStartLocations(viewPath); // Assert Assert.Empty(result); }
public void GetViewStartLocations_ReturnsPotentialViewStartLocations(string appPath, string viewPath, IEnumerable<string> expected) { // Arrange var provider = new ViewStartProvider(GetAppEnv(appPath), Mock.Of<IRazorPageFactory>()); // Act var result = provider.GetViewStartLocations(viewPath); // Assert Assert.Equal(expected, result); }
public void GetViewStartLocations_ReturnsPotentialViewStartLocations(string appPath, string viewPath, IEnumerable <string> expected) { // Arrange var provider = new ViewStartProvider(GetAppEnv(appPath), Mock.Of <IRazorPageFactory>()); // Act var result = provider.GetViewStartLocations(viewPath); // Assert Assert.Equal(expected, result); }