public void IndexOfTypeNotInPipelineReturnsNegativeOne() { var pipeline = new TestableBundlePipeline(); var index = pipeline.IndexOf <AssignHash>(); index.ShouldEqual(-1); }
public void IndexOfFirstTypeInPipelineEquals0() { var pipeline = new TestableBundlePipeline(); pipeline.Add(new AssignHash()); var index = pipeline.IndexOf <AssignHash>(); index.ShouldEqual(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); }