public void ManifestUrlEqualsBundleUrl() { var bundle = new ExternalScriptBundle("http://example.com/"); var builder = new ExternalScriptBundleManifestBuilder(); var manifest = builder.BuildManifest(bundle); manifest.Url.ShouldEqual(bundle.ExternalUrl); }
public void ManifestFallbackConditionEqualsBundleFallbackCondition() { var bundle = new ExternalScriptBundle("http://example.com/", "~/path", "FALLBACK-CONDITION"); var builder = new ExternalScriptBundleManifestBuilder(); var manifest = builder.BuildManifest(bundle); manifest.FallbackCondition.ShouldEqual(bundle.FallbackCondition); }
public void ManifestConditionEqualsBundleCondition() { var bundle = new ExternalScriptBundle("http://example.com/") { Condition = "CONDITION" }; var builder = new ExternalScriptBundleManifestBuilder(); var manifest = builder.BuildManifest(bundle); manifest.Condition.ShouldEqual(bundle.Condition); }