tooling/ActionTypes/VisualStudioTest.xscript.ps1

#:xheader:
#Type=ActionType;
#:xheader:

@{
    Clean = 
    {
        Param([ConfigAutomationContext] $context,[UIAction] $action)
        return $true
    };
    Action = 
    {
        Param([ConfigAutomationContext] $context,[UIAction] $action)
        
        $extracted = $action.Parameters().Extract(@("TestUsing", "TestsFiles", "SearchFolder"))
        $context.Display("{yellow}Mocked...{gray}")
        return $true
    };
    CanExecute = 
    {
        Param([ConfigAutomationContext] $context,[UIAction] $action)
        return $true
    };
    Validate = 
    {
        Param([ConfigAutomationContext] $context,[UIAction] $action)

        if(-not $action.Parameters().Validate(@("TestUsing", "TestsFiles", "SearchFolder"))){
            return $false
        }
        $context.Display("{yellow}Mocked...{gray}")
        return $true
    };
    
}