From c047200326dff3e363b651d8f5537ddb1adc5adb Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Mon, 2 Dec 2024 07:34:07 +0100 Subject: [PATCH] fixed tests --- Ocaramba.Tests.Angular/Tests/AngularTestNunit.cs | 2 +- .../Tests/HerokuappTestsNUnit.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Ocaramba.Tests.Angular/Tests/AngularTestNunit.cs b/Ocaramba.Tests.Angular/Tests/AngularTestNunit.cs index 026a74b19..d3ac7d184 100644 --- a/Ocaramba.Tests.Angular/Tests/AngularTestNunit.cs +++ b/Ocaramba.Tests.Angular/Tests/AngularTestNunit.cs @@ -41,7 +41,7 @@ public void AngularPageNavigationTest() .ClickProtractorApi() .ClickElementToBeSelected(); - Assert.True(protractorApiPage.IsElementToBeSelectedHeaderDisplayed(), "Header is not displayed."); + Assert.That(protractorApiPage.IsElementToBeSelectedHeaderDisplayed(), Is.True, "Header is not displayed."); } } } diff --git a/Ocaramba.Tests.CloudProviderCrossBrowser/Tests/HerokuappTestsNUnit.cs b/Ocaramba.Tests.CloudProviderCrossBrowser/Tests/HerokuappTestsNUnit.cs index 6c9d5c900..2bcec6b14 100644 --- a/Ocaramba.Tests.CloudProviderCrossBrowser/Tests/HerokuappTestsNUnit.cs +++ b/Ocaramba.Tests.CloudProviderCrossBrowser/Tests/HerokuappTestsNUnit.cs @@ -51,8 +51,8 @@ public void TablesTest() .GoToTablesPage(); var table = tableElements.GetTableElements(); - Assert.AreEqual("Smith", table[0][0]); - Assert.AreEqual("edit delete", table[3][5].Trim().Replace("\r", String.Empty).Replace(" ", String.Empty).Replace("\n", String.Empty)); + Assert.That(table[0][0], Is.EqualTo("Smith")); + Assert.That(table[3][5].Trim().Replace("\r", String.Empty).Replace(" ", String.Empty).Replace("\n", String.Empty), Is.EqualTo("edit delete")); } [Test] @@ -64,7 +64,7 @@ public void DynamicallyLoadedPageElementsTest() .ClickOnExample2(); page.ClickStart(); - Assert.AreEqual(page.Text, "Hello World!"); + Assert.That(page.Text, Is.EqualTo("Hello World!")); } } }