1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-10-19 04:26:12 +00:00
X10D/X10D.Tests/src/Time/TimeSpanParserTests.cs

16 lines
365 B
C#
Raw Normal View History

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 _));
}
}