Pester/defaultheader.tests.ps1
# this is a Pester test file #region Further Reading # http://www.powershellmagazine.com/2014/03/27/testing-your-powershell-scripts-with-pester-assertions-and-more/ #endregion #region LoadScript # load the script file into memory # attention: make sure the script only contains function definitions # and no active code. The entire script will be executed to load # all functions into memory . ($PSCommandPath -replace '\.tests\.ps1$', '.ps1') #endregion |