public void CheckMainPage() { var page = new MainPage(); const string TEST_TEXT = "Text which rewrote"; page.SaveContent("Some text.."); page.SaveContent(TEST_TEXT); var sameAboutPage = new MainPage(); string actual = sameAboutPage.GetPlainContent(); Assert.AreEqual(TEST_TEXT, actual); }
public void TextCanContain8000Symbols() { MainPage mainPage = new MainPage(); string bigString = this.Get8000SymbolString(); mainPage.SaveContent(bigString); string newText = mainPage.GetPlainContent(); Assert.AreEqual(bigString, newText); }