From 89061b5cbff99c1537d54fc4b9c7e640579dee73 Mon Sep 17 00:00:00 2001 From: Jack Kanarish Date: Wed, 7 Aug 2019 20:47:54 -0400 Subject: [PATCH] feat: add unit test for timer --- .../Timers/IcdStopwatchTest.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ICD.Common.Utils.Tests/Timers/IcdStopwatchTest.cs diff --git a/ICD.Common.Utils.Tests/Timers/IcdStopwatchTest.cs b/ICD.Common.Utils.Tests/Timers/IcdStopwatchTest.cs new file mode 100644 index 0000000..36a79a8 --- /dev/null +++ b/ICD.Common.Utils.Tests/Timers/IcdStopwatchTest.cs @@ -0,0 +1,17 @@ +using ICD.Common.Utils.Timers; +using NUnit.Framework; + +namespace ICD.Common.Utils.Tests.Timers +{ + [TestFixture] + public sealed class IcdStopwatchTest + { + [Test] + public void ConstructorTest() + { + var stopwatch = new IcdStopwatch(); + ThreadingUtils.Sleep(100); + Assert.AreEqual(0, stopwatch.ElapsedMilliseconds); + } + } +}