Public/Get-StrictMode.Tests.ps1

BeforeAll {
    . $PSCommandPath.Replace('.Tests.ps1', '.ps1')
}

AfterAll {
    #Set-StrictMode -Off
}

Describe "Get-StrictMode Test" {

    It "Detected Strict-Mode Version 1.0" {
        Set-StrictMode -Version '1.0'
        Get-StrictMode | Should -BeExactly '1.0'
    }

    It "Detected Strict-Mode Version 2.0" {
        Set-StrictMode -Version '2.0'
        Get-StrictMode | Should -BeExactly '2.0'
    }

    It "Detected Strict-Mode Version 3.0" {
        Set-StrictMode -Version '3.0'
        Get-StrictMode | Should -BeExactly '3.0'
    }
    
    # ! Geht nicht, warum k.a.!
    # It "Detected Strict-Mode Off" {
    # Set-StrictMode -Off
    # Get-StrictMode | Should -BeExactly '0.0'
    # }

    It "Return Object type of Version" {
        Set-StrictMode -Version '3.0'
        Get-StrictMode | Should -BeOfType [Version]
    }
}

# SIG # Begin signature block
# MIIcYgYJKoZIhvcNAQcCoIIcUzCCHE8CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDUs8pXW+n6FIoM
# 8nD3b7UFnE3KzFa+RGdyukTGlOudnKCCFn0wggNyMIICWqADAgECAhA8emkJ82H0
# pEx+itPRny0WMA0GCSqGSIb3DQEBDQUAMFExIzAhBgkqhkiG9w0BCQEWFGluZm9A
# YXR0aWxha3JpY2suY29tMSowKAYDVQQDDCFBdHRpbGEgS3JpY2sgKFNvZnR3YXJl
# IERldmVsb3BlcikwHhcNMjIxMDE2MTg1MTA3WhcNMzIxMDE2MTkwMTA3WjBRMSMw
# IQYJKoZIhvcNAQkBFhRpbmZvQGF0dGlsYWtyaWNrLmNvbTEqMCgGA1UEAwwhQXR0
# aWxhIEtyaWNrIChTb2Z0d2FyZSBEZXZlbG9wZXIpMIIBIjANBgkqhkiG9w0BAQEF
#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