Skip to content

Commit 98965d5

Browse files
committed
MSTEST0044 'DataTestMethod' is obsolete. Use 'TestMethod' instead.
1 parent 5cf7aaf commit 98965d5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/MigrationTools.Tests/ProcessorEnrichers/StringManipulatorEnricherTests.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Collections.Generic;
22
using Microsoft.Extensions.DependencyInjection;
33
using Microsoft.VisualStudio.TestTools.UnitTesting;
4-
using MigrationTools.DataContracts;
54
using MigrationTools.Shadows;
65
using MigrationTools.Tools;
76

@@ -86,7 +85,7 @@ public void StringManipulatorTool_LengthLongerThanMaxTest()
8685
Assert.AreEqual(10, newValue.Length);
8786
}
8887

89-
[DataTestMethod(), TestCategory("L1")]
88+
[TestMethod(), TestCategory("L1")]
9089
[DataRow(null, null)]
9190
[DataRow("", "")]
9291
[DataRow("lorem", "lorem")]
@@ -111,7 +110,7 @@ public void StringManipulatorTool_Disabled(string? value, string? expected)
111110
Assert.AreEqual(expected, newValue);
112111
}
113112

114-
[DataTestMethod(), TestCategory("L1")]
113+
[TestMethod(), TestCategory("L1")]
115114
[DataRow(null, null)]
116115
[DataRow("", " ")]
117116
[DataRow("lorem", "lorem lorem")]
@@ -137,7 +136,7 @@ public void StringManipulatorTool_Process(string? value, string? expected)
137136
Assert.AreEqual(expected, newValue);
138137
}
139138

140-
[DataTestMethod(), TestCategory("L1")]
139+
[TestMethod(), TestCategory("L1")]
141140
[DataRow(null, null)]
142141
[DataRow("", " 1 2")]
143142
[DataRow("lorem", "lorem 1 2")]
@@ -169,7 +168,7 @@ public void StringManipulatorTool_MultipleManipulators(string? value, string? ex
169168
Assert.AreEqual(expected, newValue);
170169
}
171170

172-
[DataTestMethod(), TestCategory("L1")]
171+
[TestMethod(), TestCategory("L1")]
173172
[DataRow("Hello", "Hello")]
174173
[DataRow("Héllo", "Héllo")] // New behavior: accented chars preserved
175174
[DataRow("Привет", "Привет")] // New behavior: Cyrillic chars preserved
@@ -190,7 +189,7 @@ public void StringManipulatorTool_DefaultManipulator_UnicodeSupport(string value
190189
Assert.AreEqual(expected, newValue);
191190
}
192191

193-
[DataTestMethod(), TestCategory("L1")]
192+
[TestMethod(), TestCategory("L1")]
194193
[DataRow("Hello", "Hello")]
195194
[DataRow("Héllo", "Héllo")] // Expected behavior: accented chars preserved
196195
[DataRow("Привет", "Привет")] // Expected behavior: Cyrillic chars preserved
@@ -221,10 +220,10 @@ public void StringManipulatorTool_DefaultManipulator_ExpectedBehavior(string val
221220
Assert.AreEqual(expected, newValue);
222221
}
223222

224-
[DataTestMethod(), TestCategory("L1")]
223+
[TestMethod(), TestCategory("L1")]
225224
[DataRow("Hello 😀 World", "Hello World")] // Basic emoticons should be stripped (surrogate pairs)
226225
[DataRow("Test 🔥 Fire", "Test Fire")] // Fire emoji should be stripped (surrogate pairs)
227-
[DataRow("Code 💻 Work", "Code Work")] // Laptop emoji should be stripped (surrogate pairs)
226+
[DataRow("Code 💻 Work", "Code Work")] // Laptop emoji should be stripped (surrogate pairs)
228227
[DataRow("Heart ❤️ Love", "Heart ❤ Love")] // Variation selector stripped, heart symbol preserved
229228
[DataRow("Flag 🇺🇸 Country", "Flag Country")] // Regional indicators stripped (surrogate pairs)
230229
[DataRow("Math ∑ Symbol", "Math ∑ Symbol")] // Mathematical symbols preserved (not surrogate pairs)

0 commit comments

Comments
 (0)