diff --git a/Directory.Packages.props b/Directory.Packages.props index 9a8ea5c911..13014bbcd4 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -39,11 +39,10 @@ - - \ No newline at end of file + diff --git a/Documentation/CodeTutorials/PluginWriting.md b/Documentation/CodeTutorials/PluginWriting.md index 1fe842faf2..9240a2c5db 100644 --- a/Documentation/CodeTutorials/PluginWriting.md +++ b/Documentation/CodeTutorials/PluginWriting.md @@ -504,7 +504,6 @@ dotnet add package HIC.RDMP.Plugin.Test dotnet add package Microsoft.NET.Test.Sdk dotnet add package NUnit dotnet add package NUnit3TestAdapter -dotnet add package NunitXml.TestLogger ``` Add the following test: @@ -516,27 +515,26 @@ using Rdmp.Core.DataFlowPipeline; using ReusableLibraryCode.Progress; using System.Data; -namespace MyPipelinePluginTests +namespace MyPipelinePluginTests; + +public class TestAnonymisationPlugins { - public class TestAnonymisationPlugins + [Test] + public void TestBasicDataTableAnonymiser1() { - [Test] - public void TestBasicDataTableAnonymiser1() - { - var dt = new DataTable(); - dt.Columns.Add("Story"); - dt.Rows.Add(new[] {"Thomas went to school regularly"}); - dt.Rows.Add(new[] {"It seems like Wallace went less regularly"}); - dt.Rows.Add(new[] {"Mr Smitty was the teacher"}); - - var a = new BasicDataTableAnonymiser1(); - var resultTable = a.ProcessPipelineData(dt,new ThrowImmediatelyDataLoadEventListener(),new GracefulCancellationToken()); - - Assert.AreEqual(resultTable.Rows.Count,3); - Assert.AreEqual("REDACTED went to school regularly",resultTable.Rows[0][0]); - Assert.AreEqual("It seems like REDACTED went less regularly",resultTable.Rows[1][0]); - Assert.AreEqual("Mr Smitty was the teacher",resultTable.Rows[2][0]); - } + using var dt = new DataTable(); + dt.Columns.Add("Story"); + dt.Rows.Add(new[] {"Thomas went to school regularly"}); + dt.Rows.Add(new[] {"It seems like Wallace went less regularly"}); + dt.Rows.Add(new[] {"Mr Smitty was the teacher"}); + + var a = new BasicDataTableAnonymiser1(); + var resultTable = a.ProcessPipelineData(dt,new ThrowImmediatelyDataLoadEventListener(),new GracefulCancellationToken()); + + Assert.AreEqual(resultTable.Rows.Count,3); + Assert.AreEqual("REDACTED went to school regularly",resultTable.Rows[0][0]); + Assert.AreEqual("It seems like REDACTED went less regularly",resultTable.Rows[1][0]); + Assert.AreEqual("Mr Smitty was the teacher",resultTable.Rows[2][0]); } } diff --git a/Rdmp.Core.Tests/Rdmp.Core.Tests.csproj b/Rdmp.Core.Tests/Rdmp.Core.Tests.csproj index cb80e9c6ae..4821571fde 100644 --- a/Rdmp.Core.Tests/Rdmp.Core.Tests.csproj +++ b/Rdmp.Core.Tests/Rdmp.Core.Tests.csproj @@ -80,7 +80,6 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/Rdmp.UI.Tests/Rdmp.UI.Tests.csproj b/Rdmp.UI.Tests/Rdmp.UI.Tests.csproj index a99c0723dc..9e4b588f3c 100644 --- a/Rdmp.UI.Tests/Rdmp.UI.Tests.csproj +++ b/Rdmp.UI.Tests/Rdmp.UI.Tests.csproj @@ -30,7 +30,6 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive -