public void TestClearForwardHistory() { BrowserTyped browser = new BrowserTyped(); browser.Navigate <dynamic>("http://google.com"); Assert.True(browser.History.Count == 1); browser.Navigate <dynamic>("https://facebook.com"); Assert.True(browser.History.Count == 2); browser.Back(); Assert.True(browser.History.Count == 1); Assert.True(browser.ForwardHistory.Count == 1); browser.ClearForwardHistory(); Assert.True(browser.ForwardHistory.Count == 0); }