From ccc16d4cd38dd5e979ed1f16ce4f47a5acc67b35 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 6 Mar 2024 12:58:56 +0100 Subject: [PATCH] update tests --- NUnit-TestingBot-Sample/ParallelTests.cs | 5 ++--- NUnit-TestingBot-Sample/SampleTest.cs | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/NUnit-TestingBot-Sample/ParallelTests.cs b/NUnit-TestingBot-Sample/ParallelTests.cs index 5bf218e..4e567aa 100644 --- a/NUnit-TestingBot-Sample/ParallelTests.cs +++ b/NUnit-TestingBot-Sample/ParallelTests.cs @@ -1,5 +1,4 @@ -using NUnit.Framework; -using OpenQA.Selenium; +using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.Remote; @@ -72,7 +71,7 @@ public void Init() public void GoogleTest() { driver.Navigate().GoToUrl("http://www.google.com"); - StringAssert.Contains("Google", driver.Title); + Assert.That(driver.Title, Is.EqualTo("Google")); IWebElement query = driver.FindElement(By.Name("q")); query.SendKeys("TestingBot"); query.Submit(); diff --git a/NUnit-TestingBot-Sample/SampleTest.cs b/NUnit-TestingBot-Sample/SampleTest.cs index c4ce9f8..c5900be 100644 --- a/NUnit-TestingBot-Sample/SampleTest.cs +++ b/NUnit-TestingBot-Sample/SampleTest.cs @@ -1,5 +1,4 @@ -using NUnit.Framework; -using OpenQA.Selenium; +using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.Remote; @@ -70,7 +69,7 @@ public void Init() public void GoogleTest() { driver.Navigate().GoToUrl("http://www.google.com"); - StringAssert.Contains("Google", driver.Title); + Assert.That(driver.Title, Is.EqualTo("Google")); IWebElement query = driver.FindElement(By.Name("q")); query.SendKeys("TestingBot"); query.Submit();