From 8b0b6d03e7973f2f4eb8b23ad017847cca46de04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Mon, 12 Dec 2022 10:27:18 +0100 Subject: [PATCH] Fix typos --- .../Smoke.E2E.Tests/Parameterized tests/DataRowTests.cs | 4 ++-- ...ayName.cs => DataRowTests_OverriddenGetDisplayName.cs} | 8 ++++---- .../Attributes/DataRowAttributeTests.cs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) rename test/E2ETests/TestAssets/DataRowTestProject/{DataRowTests_OverrideGetDisplayName.cs => DataRowTests_OverriddenGetDisplayName.cs} (80%) diff --git a/test/E2ETests/Smoke.E2E.Tests/Parameterized tests/DataRowTests.cs b/test/E2ETests/Smoke.E2E.Tests/Parameterized tests/DataRowTests.cs index 38cdf8cde7..e6fba05246 100644 --- a/test/E2ETests/Smoke.E2E.Tests/Parameterized tests/DataRowTests.cs +++ b/test/E2ETests/Smoke.E2E.Tests/Parameterized tests/DataRowTests.cs @@ -27,10 +27,10 @@ public void ExecuteOnlyDerivedClassDataRowsWhenBothBaseAndDerivedClassHasDataRow public void GetDisplayName_AfterOverriding_GetsTheNewDisplayname() { - InvokeVsTestForExecution(new string[] { TestAssembly }, testCaseFilter: "TestCategory~OverridedGetDiplayName"); + InvokeVsTestForExecution(new string[] { TestAssembly }, testCaseFilter: "TestCategory~OverriddenGetDisplayName"); ValidatePassedTestsContain( - "Overrided DisplayName"); + "Overridden DisplayName"); ValidatePassedTestsCount(1); } diff --git a/test/E2ETests/TestAssets/DataRowTestProject/DataRowTests_OverrideGetDisplayName.cs b/test/E2ETests/TestAssets/DataRowTestProject/DataRowTests_OverriddenGetDisplayName.cs similarity index 80% rename from test/E2ETests/TestAssets/DataRowTestProject/DataRowTests_OverrideGetDisplayName.cs rename to test/E2ETests/TestAssets/DataRowTestProject/DataRowTests_OverriddenGetDisplayName.cs index 2f57ef3c4e..303d14c65a 100644 --- a/test/E2ETests/TestAssets/DataRowTestProject/DataRowTests_OverrideGetDisplayName.cs +++ b/test/E2ETests/TestAssets/DataRowTestProject/DataRowTests_OverriddenGetDisplayName.cs @@ -9,10 +9,10 @@ namespace DataRowAttributeTestProject; [TestClass] -public class DataRowTests_OverrideGetDisplayName +public class DataRowTests_OverriddenGetDisplayName { - [TestCategory("OverridedGetDiplayName")] - [DummyDataRowAttribute] + [TestCategory("OverriddenGetDisplayName")] + [DummyDataRow] [TestMethod] public void TestMethod() { @@ -28,7 +28,7 @@ public DummyDataRowAttribute() public override string GetDisplayName(MethodInfo methodInfo, object[] data) { - return "Overrided DisplayName"; + return "Overridden DisplayName"; } } } diff --git a/test/UnitTests/TestFramework.UnitTests/Attributes/DataRowAttributeTests.cs b/test/UnitTests/TestFramework.UnitTests/Attributes/DataRowAttributeTests.cs index d352c9a46c..66dae05d6b 100644 --- a/test/UnitTests/TestFramework.UnitTests/Attributes/DataRowAttributeTests.cs +++ b/test/UnitTests/TestFramework.UnitTests/Attributes/DataRowAttributeTests.cs @@ -133,7 +133,7 @@ public void GetDisplayName_AfterOverriding_GetsTheNewDisplayName() var displayName = dataRow.GetDisplayName(methodInfoMock.Object, dataRow.Data); // Assert - Verify(displayName == "Overrided DisplayName"); + Verify(displayName == "Overridden DisplayName"); } public void GetDisplayNameForArrayOfMultipleItems() @@ -187,7 +187,7 @@ public DummyDataRowAttribute() public override string GetDisplayName(MethodInfo methodInfo, object[] data) { - return "Overrided DisplayName"; + return "Overridden DisplayName"; } } }