public void GetProviderRootThrows(string providerRootPath, string webRootPath, string contentRootPath) { var providerOptions = new PhysicalFileSystemProviderOptions { ProviderRootPath = providerRootPath }; Assert.Throws <InvalidOperationException>(() => PhysicalFileSystemProvider.GetProviderRoot(providerOptions, webRootPath, contentRootPath)); }
public void GetProviderRoot(string providerRootPath, string webRootPath, string contentRootPath, string expected) { var providerOptions = new PhysicalFileSystemProviderOptions { ProviderRootPath = providerRootPath }; string actual = PhysicalFileSystemProvider.GetProviderRoot(providerOptions, webRootPath, contentRootPath); Assert.Equal(expected, actual); }