private IsRequestForSamePage ( string navigateUrl ) : bool | ||
navigateUrl | string | |
리턴 | bool |
public void IsRequestForSamePage_WithRequestForDirectoryWithMatchingNavigateUrl_ReturnsTrue() { // arrange var navigationLink = new NavigationLink(); // act bool isSamePage = navigationLink.IsRequestForSamePage("/Foo/Bar/", "/Foo/Bar/"); // assert Assert.IsTrue(isSamePage); }
public void IsRequestForSamePage_WithRequestForRootAndNavigateUrlAsSlash_ReturnsTrue() { // arrange var navigationLink = new NavigationLink(); // act bool isSamePage = navigationLink.IsRequestForSamePage("/", "/"); // assert Assert.IsTrue(isSamePage); }
public void IsRequestForSamePage_WithRequestForDefaultAspxRootAndNavigateUrlAsSlash_ReturnsTrue() { // arrange var navigationLink = new NavigationLink { NavigateUrl = "~/" }; // act bool isSamePage = navigationLink.IsRequestForSamePage("/", "/Default.aspx"); // assert Assert.IsTrue(isSamePage); }