DSCResources/POSHOrigin_vSphere_VM/Helpers/_TestVMRAM.ps1

function _TestVMRAM {
    [cmdletbinding()]
    param(
        $VM,
        [int]$RAM
    )

    # VM matches memory
    if ($VM.MemoryGB -ne $RAM) {
        return $false
    } else {
        return $true
    }
}