示例#1
0
        private static void RunParseHeaderTest(string header, string expectedName, string expectedValue)
        {
            var actualHeader = ArmorHelper.ParseHeader(header);

            actualHeader.ShouldNotBeNull();
            actualHeader.Name.ShouldBe(expectedName);
            actualHeader.Value.ShouldBe(expectedValue);
        }
示例#2
0
 public void ParseHeaderShouldReturnFalseIfHeaderIsNotParsed()
 {
     ArmorHelper.ParseHeader("No value").ShouldBeNull();
     ArmorHelper.ParseHeader(": Value no name").ShouldBeNull();
 }