From 1bd294270bf5ed5482160aed1e9ad023cf18751f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 00:08:31 +0000 Subject: [PATCH 1/3] Bump NunitXml.TestLogger from 4.1.0 to 5.0.0 Bumps [NunitXml.TestLogger](https://github.com/spekt/testlogger) from 4.1.0 to 5.0.0. - [Release notes](https://github.com/spekt/testlogger/releases) - [Changelog](https://github.com/spekt/testlogger/blob/master/CHANGELOG.md) - [Commits](https://github.com/spekt/testlogger/compare/v4.1.0...v5.0.0) --- updated-dependencies: - dependency-name: NunitXml.TestLogger dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 5309eae97e..de9c130f51 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -39,7 +39,7 @@ - + From a8b7070e6506b66572f236a321dfba967c0a790f Mon Sep 17 00:00:00 2001 From: James A Sutherland <> Date: Mon, 30 Dec 2024 08:29:13 -0600 Subject: [PATCH 2/3] Remove disused test loggers --- Directory.Packages.props | 3 +-- Rdmp.Core.Tests/Rdmp.Core.Tests.csproj | 1 - Rdmp.UI.Tests/Rdmp.UI.Tests.csproj | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index de9c130f51..d01f9b9a13 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -39,11 +39,10 @@ - - \ No newline at end of file + 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 - From 8b1fc76a076d70b2fe69c57c9e98dd113b80e68b Mon Sep 17 00:00:00 2001 From: James A Sutherland <> Date: Mon, 13 Jan 2025 11:09:28 -0600 Subject: [PATCH 3/3] Remove old TestLogger ref from docs --- Documentation/CodeTutorials/PluginWriting.md | 38 ++++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) 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]); } }