-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a61384
commit 0d56fb5
Showing
3 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Budgerigar.Tests/Timing/StopWatch/StopwatchPerformanceMonitorStepFacts.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Budgerigar.Timing.StopWatch; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace Budgerigar.Tests.Timing.StopWatch { | ||
public class StopwatchPerformanceMonitorStepFacts { | ||
|
||
[Fact] | ||
public void Throws_If_Stopwatch_Not_Running() { | ||
var stopwatch = new Stopwatch(); | ||
|
||
Assert.Throws<ArgumentException>(() => new StopwatchPerformanceMonitorStep("test", stopwatch)); | ||
} | ||
|
||
|
||
} | ||
} |