Functions/New-MockObject.Tests.ps1

1
2
3
4
5
6
7
8
describe 'New-MockObject' {

    it 'instantiates an object from a class with no public constructors' {
        $type = 'Microsoft.PowerShell.Commands.Language'
        New-MockObject -Type $type | should beoftype $type
    }
}