public void must_be_after_is_false_by_default() { var policy = new TransformerPolicy(ActionType.Transformation, MimeType.Javascript, typeof(StubTransformer)); var policy2 = new TransformerPolicy(ActionType.Transformation, MimeType.Javascript, typeof(StubTransformer)); policy.MustBeAfter(policy2).ShouldBeFalse(); policy2.MustBeAfter(policy).ShouldBeFalse(); }
public void use_must_be_after_rules() { var policy = new TransformerPolicy(ActionType.Transformation, MimeType.Javascript, typeof(StubTransformer)); var policy2 = new TransformerPolicy(ActionType.Transformation, MimeType.Javascript, typeof(StubTransformer)); policy2.AddMustBeAfterRule(p => p == policy); policy.MustBeAfter(policy2).ShouldBeFalse(); policy2.MustBeAfter(policy).ShouldBeTrue(); }
public void use_must_be_after_rules() { var policy = new TransformerPolicy(ActionType.Transformation, MimeType.Javascript, typeof(StubTransformer)); var policy2 = new TransformerPolicy(ActionType.Transformation, MimeType.Javascript, typeof(StubTransformer)); policy2.AddMustBeAfterRule(p => p == policy); policy.MustBeAfter(policy2).ShouldBeFalse(); policy2.MustBeAfter(policy).ShouldBeTrue(); }
public void must_be_after_is_false_by_default() { var policy = new TransformerPolicy(ActionType.Transformation, MimeType.Javascript, typeof(StubTransformer)); var policy2 = new TransformerPolicy(ActionType.Transformation, MimeType.Javascript, typeof(StubTransformer)); policy.MustBeAfter(policy2).ShouldBeFalse(); policy2.MustBeAfter(policy).ShouldBeFalse(); }