public void TestValidateHttpRequestWithFragmentHavingTwoChildren() { // Arrange var header = new Header { Name = "HttpRequest Expected", Children = new List <Header> { new Header { Name = "BaseUri", }, new Header { Name = "Fragment", Children = new List <Header> { new Header(), new Header(), } } } }; // Act HeaderValidator.ValidateHttpRequest(header); }
public void TestValidateHttpRequestWithBaseUriHavingChildren() { // Arrange var header = new Header { Name = "HttpRequest Expected", Children = new List <Header> { new Header { Name = "BaseUri", Children = new List <Header> { new Header { Name = "User-Agent" } } } } }; // Act HeaderValidator.ValidateHttpRequest(header); }
public void TestValidateHttpRequestWithNotHavingChildren() { // Arrange var header = new Header { Name = "HttpRequest Expected", }; // Act HeaderValidator.ValidateHttpRequest(header); }
public void TestValidateHttpRequestWithInvalidName() { // Arrange var header = new Header { Name = "HttpRequest aa", }; // Act HeaderValidator.ValidateHttpRequest(header); }
public void TestValidateHttpRequestWithNotHavingBaseUri() { // Arrange var header = new Header { Name = "HttpRequest Expected", Children = new List <Header> { new Header { Name = "PathInfos", } } }; // Act HeaderValidator.ValidateHttpRequest(header); }
public void TestValidateHttpRequestInvalidChildName() { // Arrange var header = new Header { Name = "HttpRequest Actual", Depth = 1, From = 1, To = 2, Children = new List <Header> { new Header { Depth = 2, From = 1, To = 1, Name = "BaseUri" }, new Header { Depth = 2, From = 1, To = 1, Name = "XXXX" }, } }; // Act HeaderValidator.ValidateHttpRequest(header); }