public void GetLayoutPageName_MVCLayout() { //Arrange IRegexService target = new RegexService(); string pageContent = Resources.PageWithMVCLayout; string expected = "MVC.Shared.Views.ViewNames._Filters"; //Act string actual = target.GetLayoutPageName(pageContent); //Assert Assert.AreEqual(expected, actual); }
public void GetLayoutPageName_HardCodedLayout() { //Arrange IRegexService target = new RegexService(); string pageContent = Resources.PageWithHardCodedLayout; string expected = "_Main.cshtml"; //Act string actual = target.GetLayoutPageName(pageContent); //Assert Assert.AreEqual(expected, actual); }