Skip to content

Commit

Permalink
better test for 10 minutes reset
Browse files Browse the repository at this point in the history
  • Loading branch information
unickq committed Jan 10, 2019
1 parent 83537d9 commit bf81c8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 10MinuteMail.Net.Tests/Tests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Threading;
using NUnit.Framework;

namespace _10MinuteMail.Net.Tests
Expand Down Expand Up @@ -26,6 +27,8 @@ public void ValidateGenerateNewEmail()
public void ValidateReset10Minutes()
{
Console.WriteLine($"Before: {_tenMinuteMail.SecondsLeft}");
Thread.Sleep(3000);
Console.WriteLine($"After 3 sec wait: {_tenMinuteMail.SecondsLeft}");
Console.WriteLine("Resetting 10 minutes");
_tenMinuteMail.Reset10Minutes();
Console.WriteLine($"After: {_tenMinuteMail.SecondsLeft}");
Expand Down

0 comments on commit bf81c8e

Please sign in to comment.