public void FitNessePageDeleteTableFromPageTest() { const string pageContent = "\nq\n|Dictionary|TableName|\n|key|value|\n|key1|value1|\nq\n"; var fitnessePage = new FitNessePageMock(pageContent); Assert.IsTrue(fitnessePage.DeleteTableFromPage("TableName", "PageName")); const string expected = PageDataRequest + DeletePageRequest + AddChildPartialRequest + "\nq\nq\n" + UriSeparator; Assert.AreEqual(expected, fitnessePage.UsedUri); Assert.IsFalse(fitnessePage.DeleteTableFromPage("WrongTableName", "PageName"), "Non-existing table returns false"); }
public void FitNessePageDeleteTableFromEmptyPageTest() { var fitnessePage = new FitNessePageMock(null); Assert.IsFalse(fitnessePage.DeleteTableFromPage("TableName", "PageName")); }