Tests/image.tests.ps1
using module "..\PSMD.psd1" Describe "Testing Function Image" { Context "Base Functionality" { it "[PSMD][Function][Image] Create a Image" { {image -Text "Hello" -ImagePath "path"} | should not throw } } Context "Image specifics" { $Image = image -Text "Hello" -ImagePath "path" it "[PSMD][Function][Image] The Type Property should be 'Image'" { $Image.Type | should Be "Image" } it "[PSMD][Function][Image] The ID Property should not be empty" { $Image.ID | should not BeNullOrEmpty } it "[PSMD][Function][Image] The Line Property should not be empty" { $Image.Line | should not BeNullOrEmpty } } } |