Added unit test

This commit is contained in:
KevinMarquette
2017-02-02 23:46:45 -08:00
parent 95de788248
commit 820881d15e

View File

@@ -18,6 +18,12 @@ Describe "Basic unit tests" -Tags Build {
it "Creates an Object" { it "Creates an Object" {
{[ScriptLine]::New()} | Should Not Throw {[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" { Context "Class: ScriptProfiler" {
@@ -25,7 +31,9 @@ Describe "Basic unit tests" -Tags Build {
it "Creates an Object" { it "Creates an Object" {
{[ScriptProfiler]::New()} | Should Not Throw {[ScriptProfiler]::New()} | Should Not Throw
} }
it "Start()" {
{[ScriptProfiler]::Start()} | Should Not Throw
}
} }
} }
} }