mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
18 lines
324 B
C#
18 lines
324 B
C#
using NUnit.Framework;
|
|
|
|
namespace ICD.Common.Utils.Tests
|
|
{
|
|
[TestFixture]
|
|
public sealed class DateTimeUtilsTest
|
|
{
|
|
[TestCase(1, 1)]
|
|
[TestCase(0, 12)]
|
|
[TestCase(12, 12)]
|
|
[TestCase(23, 11)]
|
|
public void To12HourTest(int hour, int expected)
|
|
{
|
|
Assert.AreEqual(expected, DateTimeUtils.To12Hour(hour));
|
|
}
|
|
}
|
|
}
|