From 820881d15ec6bfa0f639536eeb296885e3756e84 Mon Sep 17 00:00:00 2001 From: KevinMarquette Date: Thu, 2 Feb 2017 23:46:45 -0800 Subject: [PATCH] Added unit test --- Tests/Unit.Tests.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Tests/Unit.Tests.ps1 b/Tests/Unit.Tests.ps1 index a67ea43..0ea483b 100644 --- a/Tests/Unit.Tests.ps1 +++ b/Tests/Unit.Tests.ps1 @@ -18,6 +18,12 @@ Describe "Basic unit tests" -Tags Build { it "Creates an Object" { {[ScriptLine]::New()} | Should Not Throw } + it "ToString()" { + {[ScriptLine]::New().toString()} | Should Not Throw + } + it "Creates an Object" { + {[ScriptLine]::New().AddExecutionTime(1)} | Should Not Throw + } } Context "Class: ScriptProfiler" { @@ -25,7 +31,9 @@ Describe "Basic unit tests" -Tags Build { it "Creates an Object" { {[ScriptProfiler]::New()} | Should Not Throw } + it "Start()" { + {[ScriptProfiler]::Start()} | Should Not Throw + } } } - } \ No newline at end of file