Пример #1
0
            public void IndexOfSecondTypeInPipelineEquals1()
            {
                var pipeline = new TestableBundlePipeline();

                pipeline.Add(new AssignHash());
                pipeline.Add(new AssignContentType("text/javascript"));
                var index = pipeline.IndexOf <AssignContentType>();

                index.ShouldEqual(1);
            }
Пример #2
0
            public void IndexOfFirstTypeInPipelineEquals0()
            {
                var pipeline = new TestableBundlePipeline();

                pipeline.Add(new AssignHash());
                var index = pipeline.IndexOf <AssignHash>();

                index.ShouldEqual(0);
            }