OpenQA.Selenium.TextHandlingTest.ShouldNotCollapseANonBreakingSpaces C# (CSharp) Method

ShouldNotCollapseANonBreakingSpaces() private method

private ShouldNotCollapseANonBreakingSpaces ( ) : void
return void
        public void ShouldNotCollapseANonBreakingSpaces()
        {
            driver.Url = (simpleTestPage);
            IWebElement element = driver.FindElement(By.Id("nbspandspaces"));
            string text = element.Text;

            Assert.AreEqual(text, "This line has a   non-breaking space and spaces");
        }