public void ShouldNotDetectWithWrongMethod(string initialBasePath) { //Arrange var detector = new StatusRequestDetector(initialBasePath); //Act var relPath = detector.DetectAndGetRelatedPath("POST", "/status"); //Assert Assert.Null(relPath); }
public void ShouldDetectSubPath(string initialBasePath) { //Arrange var detector = new StatusRequestDetector(initialBasePath); //Act var relPath = detector.DetectAndGetRelatedPath("GET", "/status/foo"); //Assert Assert.Equal("/foo", relPath); }