Example #1
0
        public void OtherResponseShouldReturnTrue()
        {
            var parser = new ZsyncOutputParser();

            var output = parser.VerifyZsyncCompatible("some other response");

            output.Should().BeTrue("because the magic string is not found");
        }
Example #2
0
        public void PartialContentResponseShouldReturnFalse()
        {
            var parser = new ZsyncOutputParser();

            var output =
                parser.VerifyZsyncCompatible(
                    "zsync received a data response (code 200) but this is not a partial content response");

            output.Should().BeFalse("because the magic string is found");
        }