Files
Saxonite/Workspace/SaxoniteUnitTestsShared/UnitTests/Data/Bus/SaxUserAccount_DisplayName_Tester.cs
T
andy 9f22b522df v1.3.0 Restructure Saxonite workspace and upgrade to .NET 10 (#1)
Move Saxonite’s projects into a dedicated `Workspace` folder and align the solution with .NET 10 and the current Common workspace. Update encryption integration, test project structure and coverage, and repository guidance and upgrade notes.

- Relocate application and library projects while retaining Git rename history.
- Split tests into Admin, Online, and Shared projects; add representative behavioral and serialization tests.
- Update Common integration, application version, and repository documentation.

Application version: 1.3.0

Reviewed-on: #1
Co-authored-by: andy <andy@sarand.com>
2026-10-16 18:24:16 +01:00

22 lines
820 B
C#

using NUnit.Framework;
using Saxonite.Net.Standard.Base.Bus;
namespace Saxonite.Net.Core.UnitTests.Data.Bus
{
//=======================================================================
[TestFixture]
public class SaxUserAccount_DisplayName_Tester
{
//-------------------------------------------------------------------
[TestCase("Dr", "Ada", "Lovelace", "Dr Ada Lovelace")]
[TestCase(null, "Ada", "Lovelace", "Ada Lovelace")]
[TestCase("Dr", null, "Lovelace", "Dr Lovelace")]
[TestCase(null, null, null, "")]
public void DisplayNameJoinsPresentNameParts(string title, string firstName, string lastName, string expected)
{
Assert.That(SaxUserAccount.GetDisplayName(title, firstName, lastName), Is.EqualTo(expected));
}
}
//=======================================================================
}