예제 #1
0
        public void SetUp()
        {
            var file = new AssetFile("something.a.b.c.d.js");

            theComparer = new TransformerComparer(file);

            generate = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Generate);

            generate2 = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Generate);

            generate3 = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Generate);

            generateA = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Generate, ".a");

            generateB = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Generate, ".b");

            generateC = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Generate, ".c");

            substitution = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Substitution);

            _transformer = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Transformation);

            batched = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.BatchedTransformation);

            global = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Global);
        }
        public void return_zero_for_ordering_if_there_is_no_possible_way_to_sort()
        {
            var generate4 = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Generate, ".4");

            var comparer = new TransformerComparer(new AssetFile("something.js"));
            comparer.Compare(generate, generate4).ShouldEqual(0);
            comparer.Compare(generate4, generate).ShouldEqual(0);
        }
예제 #3
0
        public void return_zero_for_ordering_if_there_is_no_possible_way_to_sort()
        {
            var generate4 = JavascriptTransformerPolicy <StubTransformer> .For(ActionType.Generate, ".4");

            var comparer = new TransformerComparer(new AssetFile("something.js"));

            comparer.Compare(generate, generate4).ShouldEqual(0);
            comparer.Compare(generate4, generate).ShouldEqual(0);
        }
        public void SetUp()
        {
            var file = new AssetFile("something.a.b.c.d.js");
            theComparer = new TransformerComparer(file);

            generate = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Generate);
            generate2 = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Generate);
            generate3 = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Generate);
            generateA = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Generate, ".a");
            generateB = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Generate, ".b");
            generateC = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Generate, ".c");
            substitution = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Substitution);
            _transformer = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Transformation);
            batched = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.BatchedTransformation);
            global = JavascriptTransformerPolicy<StubTransformer>.For(ActionType.Global);
        }