public void ContainsRelativePathToAsset_ReturnsTrue() { var bundle = new TestableBundle("~/test"); var asset = new StubAsset("~/test/asset.js"); bundle.Assets.Add(asset); bundle.ContainsPath("asset.js").ShouldBeTrue(); }
public void ContainsPathOfAssetInBundleWithDifferentCasing_ReturnsTrue() { var bundle = new TestableBundle("~/test"); var asset = new Mock <IAsset>(); asset.Setup(a => a.Accept(It.IsAny <IBundleVisitor>())) .Callback <IBundleVisitor>(v => v.Visit(asset.Object)); asset.Setup(a => a.SourceFile.FullPath).Returns("~/test/asset.js"); bundle.Assets.Add(asset.Object); bundle.ContainsPath("~\\TEST\\ASSET.js").ShouldBeTrue(); }
public void ContainsPathOfAssetInBundleWithForwardSlash_ReturnsTrue() { var bundle = new TestableBundle("~/test"); var asset = new Mock <IAsset>(); asset.Setup(a => a.Accept(It.IsAny <IBundleVisitor>())) .Callback <IBundleVisitor>(v => v.Visit(asset.Object)); asset.Setup(a => a.Path).Returns("~/test/asset.js"); bundle.Assets.Add(asset.Object); bundle.ContainsPath("~/test/asset.js").ShouldBeTrue(); }
public void ContainsRelativePathToAsset_ReturnsTrue() { var bundle = new TestableBundle("~/test"); var asset = StubAsset("~/test/asset.js"); bundle.Assets.Add(asset); bundle.ContainsPath("asset.js").ShouldBeTrue(); }
public void ContainsPathOfJustTheBundleItself_ReturnsTrue() { var bundle = new TestableBundle("~/test"); bundle.ContainsPath("~/test").ShouldBeTrue(); }
public void ContainsPathOfJustTheBundleItselfWithTrailingSlash_ReturnsTrue() { var bundle = new TestableBundle("~/test"); bundle.ContainsPath("~\\test\\").ShouldBeTrue(); }
public void ContainsPathOfJustTheBundleItselfWithDifferentCasing_ReturnsTrue() { var bundle = new TestableBundle("~/test"); bundle.ContainsPath("~\\TEST").ShouldBeTrue(); }
public void ContainsPathOfAssetNotInBundle_ReturnsFalse() { var bundle = new TestableBundle("~/test"); bundle.ContainsPath("~\\test\\not-in-bundle.js").ShouldBeFalse(); }
public void ContainsPathOfAssetInBundle_ReturnsTrue() { var bundle = new TestableBundle("~/test"); var asset = new Mock<IAsset>(); asset.Setup(a => a.Accept(It.IsAny<IBundleVisitor>())) .Callback<IBundleVisitor>(v => v.Visit(asset.Object)); asset.Setup(a => a.SourceFile.FullPath).Returns("~/test/asset.js"); bundle.Assets.Add(asset.Object); bundle.ContainsPath("~\\test\\asset.js").ShouldBeTrue(); }
public void ContainsPathOfAssetInBundleWithDifferentCasing_ReturnsTrue() { var bundle = new TestableBundle("~/test"); var asset = new Mock<IAsset>(); asset.Setup(a => a.Accept(It.IsAny<IBundleVisitor>())) .Callback<IBundleVisitor>(v => v.Visit(asset.Object)); asset.Setup(a => a.Path).Returns("~/test/asset.js"); bundle.Assets.Add(asset.Object); bundle.ContainsPath("~\\TEST\\ASSET.js").ShouldBeTrue(); }
public void ContainsPathOfAssetNotInBundle_ReturnsFalse() { var bundle = new TestableBundle("~/test"); bundle.ContainsPath("~\\test\\not-in-bundle.js").ShouldBeFalse(); }
public void ContainsPathOfJustTheBundleItselfWithTrailingSlash_ReturnsTrue() { var bundle = new TestableBundle("~/test"); bundle.ContainsPath("~\\test\\").ShouldBeTrue(); }
public void ContainsPathOfJustTheBundleItselfWithDifferentCasing_ReturnsTrue() { var bundle = new TestableBundle("~/test"); bundle.ContainsPath("~\\TEST").ShouldBeTrue(); }
public void ContainsPathOfJustTheBundleItself_ReturnsTrue() { var bundle = new TestableBundle("~/test"); bundle.ContainsPath("~/test").ShouldBeTrue(); }