@@ -504,7 +504,6 @@ dotnet add package HIC.RDMP.Plugin.Test
504504dotnet add package Microsoft.NET.Test.Sdk
505505dotnet add package NUnit
506506dotnet add package NUnit3TestAdapter
507- dotnet add package NunitXml.TestLogger
508507```
509508
510509Add the following test:
@@ -516,27 +515,26 @@ using Rdmp.Core.DataFlowPipeline;
516515using ReusableLibraryCode .Progress ;
517516using System .Data ;
518517
519- namespace MyPipelinePluginTests
518+ namespace MyPipelinePluginTests ;
519+
520+ public class TestAnonymisationPlugins
520521{
521- public class TestAnonymisationPlugins
522+ [Test ]
523+ public void TestBasicDataTableAnonymiser1 ()
522524 {
523- [Test ]
524- public void TestBasicDataTableAnonymiser1 ()
525- {
526- var dt = new DataTable ();
527- dt .Columns .Add (" Story" );
528- dt .Rows .Add (new [] {" Thomas went to school regularly" });
529- dt .Rows .Add (new [] {" It seems like Wallace went less regularly" });
530- dt .Rows .Add (new [] {" Mr Smitty was the teacher" });
531-
532- var a = new BasicDataTableAnonymiser1 ();
533- var resultTable = a .ProcessPipelineData (dt ,new ThrowImmediatelyDataLoadEventListener (),new GracefulCancellationToken ());
534-
535- Assert .AreEqual (resultTable .Rows .Count ,3 );
536- Assert .AreEqual (" REDACTED went to school regularly" ,resultTable .Rows [0 ][0 ]);
537- Assert .AreEqual (" It seems like REDACTED went less regularly" ,resultTable .Rows [1 ][0 ]);
538- Assert .AreEqual (" Mr Smitty was the teacher" ,resultTable .Rows [2 ][0 ]);
539- }
525+ using var dt = new DataTable ();
526+ dt .Columns .Add (" Story" );
527+ dt .Rows .Add (new [] {" Thomas went to school regularly" });
528+ dt .Rows .Add (new [] {" It seems like Wallace went less regularly" });
529+ dt .Rows .Add (new [] {" Mr Smitty was the teacher" });
530+
531+ var a = new BasicDataTableAnonymiser1 ();
532+ var resultTable = a .ProcessPipelineData (dt ,new ThrowImmediatelyDataLoadEventListener (),new GracefulCancellationToken ());
533+
534+ Assert .AreEqual (resultTable .Rows .Count ,3 );
535+ Assert .AreEqual (" REDACTED went to school regularly" ,resultTable .Rows [0 ][0 ]);
536+ Assert .AreEqual (" It seems like REDACTED went less regularly" ,resultTable .Rows [1 ][0 ]);
537+ Assert .AreEqual (" Mr Smitty was the teacher" ,resultTable .Rows [2 ][0 ]);
540538 }
541539}
542540
0 commit comments