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); }
public void ParseHeaderShouldReturnFalseIfHeaderIsNotParsed() { ArmorHelper.ParseHeader("No value").ShouldBeNull(); ArmorHelper.ParseHeader(": Value no name").ShouldBeNull(); }