mirror of
https://github.com/oliverbooth/X10D
synced 2024-10-19 04:26:12 +00:00
16 lines
365 B
C#
16 lines
365 B
C#
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||
|
using X10D.Time;
|
|||
|
|
|||
|
namespace X10D.Tests.Time;
|
|||
|
|
|||
|
[TestClass]
|
|||
|
public class TimeSpanParserTests
|
|||
|
{
|
|||
|
[TestMethod]
|
|||
|
public void TryParse_ShouldThrow_GivenNullString()
|
|||
|
{
|
|||
|
string? value = null;
|
|||
|
Assert.ThrowsException<ArgumentNullException>(() => TimeSpanParser.TryParse(value!, out _));
|
|||
|
}
|
|||
|
}
|