public static void GetStyleUri_ThrowsArgumentNullException_ForNullPath() { // Arrange var provider = new DefaultAssetProvider(); // Act & Assert Assert.Throws <ArgumentNullException>(() => provider.GetStyleUri(null)); }
public static void GetStyleUri_ReturnsBasePath_ForEmptyPath() { AppDomainUtils.RunInSeparateAppDomain(() => { AspNetHelpers.SetupAspNetDomain(); using (var _ = AspNetHelpers.CreateHttpContext()) { // Arrange var provider = new DefaultAssetProvider(); // Act var uri = provider.GetStyleUri(String.Empty); // Act & Assert Assert.Equal("/Content/", uri.ToString()); } }); }