public void GivenARequestWithPrettyIndentationUnset_WhenSerializingTheResponse_ThenPrettyIndentationIsNotApplied()
        {
            var context = new DefaultHttpContext();

            var isPretty = context.GetIsPretty();

            Assert.False(isPretty);
        }
        public void GivenARequestWithPrettyIndentationSetToTrue_WhenSerializingTheResponse_ThenPrettyIndentationIsApplied(string input)
        {
            var context = new DefaultHttpContext();

            context.Request.QueryString = QueryString.Create("_pretty", input);

            var isPretty = context.GetIsPretty();

            Assert.True(isPretty);
        }
        public void GivenARequestWithPrettyIndentationSetToFalseInCaps_WhenSerializingTheResponse_ThenPrettyIndentationIsNotApplied()
        {
            var context = new DefaultHttpContext();

            context.Request.QueryString = QueryString.Create("_PRETTY", "False");

            var isPretty = context.GetIsPretty();

            Assert.False(isPretty);
        }
        public void GivenAnXmlRequestWithPrettyIndentationSetToFalse_WhenSerializingTheResponse_ThenPrettyIndentationIsNotApplied(string input)
        {
            var context = new DefaultHttpContext();

            context.Request.QueryString = QueryString.Create("_pretty", input);
            context.Request.QueryString.Add("_format", "xml");

            var isPretty = context.GetIsPretty();

            Assert.False(isPretty);
        }