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