Migrate Common tests to NUnit

This commit is contained in:
Andy Howard
2026-09-15 10:26:59 +01:00
parent 7651e8824f
commit 27d2accb32
31 changed files with 1057 additions and 1156 deletions
@@ -1,4 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
using Sarand.Net.Standard.Base.App;
using System;
using System.Collections.Generic;
@@ -6,15 +6,12 @@ using System.Text;
namespace Sacs.UnitTests.Net.Standard.Base.App
{
//=======================================================================
[TestClass]
[TestFixture]
public class SacsCommandLineInfo_Tester
{
//-------------------------------------------------------------------
// Data members.
// --- Tests ---
//-------------------------------------------------------------------
[TestMethod]
[Test]
public void SacsCommandLineInfo_CTR()
{
SacsCommandLineInfo cmdLineInfo = new SacsCommandLineInfo(new String[]
@@ -24,12 +21,11 @@ namespace Sacs.UnitTests.Net.Standard.Base.App
"Andy",
"-SaProcess:ExportData",
});
Assert.IsNotNull(cmdLineInfo);
Assert.AreEqual(4, cmdLineInfo.ParamCount);
Assert.AreEqual(1, cmdLineInfo.ProcessDefinitions.Count);
Assert.That(cmdLineInfo, Is.Not.Null);
Assert.That(cmdLineInfo.ParamCount, Is.EqualTo(4));
Assert.That(cmdLineInfo.ProcessDefinitions.Count, Is.EqualTo(1));
}
//-------------------------------------------------------------------
// --- The End ---
}
//=======================================================================
}