예제 #1
0
        public void WhenGroupUrlIsPassedInAndConsolidationForThatGroupIsDisabled_PathToEachResourceIsReturnedRespectingDependencies()
        {
            _dependencyProvider.SetDependencies(myScript, mySecondScript);
            _groupElement.Include.AddPath(myScript);
            _groupElement.Include.AddPath(mySecondScript);
            _groupElement.Consolidate = ResourceModeCondition.Never;

            var resolvedScriptPaths = _instance.GetScriptUrls(consolidatedScript).ToList();

            resolvedScriptPaths.CountShouldEqual(2);
            resolvedScriptPaths[0].ShouldEqual(mySecondScript);
            resolvedScriptPaths[1].ShouldEqual(myScript);
        }
예제 #2
0
 private void SetDependencies(IResource resource, params string[] dependencies)
 {
     _dependencyProvider.SetDependencies(resource, dependencies);
 }