public void WhenChunkingIsRequiredShouldNotWriteContentLengthButShouldSetIsChunkedToTrue()
        {
            IChunkingStrategy strategy = new SendChunked(true);
            IHeader header = strategy.CreateHeader(100);

            Output output = Output.For(header);

            Assert.IsNull(output.ContentLength);
            Assert.IsTrue(output.IsChunked.Value);
        }
        public void WhenChunkingIsNotRequiredShouldWriteContentLengthToResponseButShouldSetIsChunkedToFalse()
        {
            IChunkingStrategy strategy = new SendChunked(false);
            IHeader header = strategy.CreateHeader(100);

            Output output = Output.For(header);

            Assert.AreEqual(100, output.ContentLength);
            Assert.IsFalse(output.IsChunked.Value);
        }