Example #1
0
        public void should_not_apply_to_powershell_script()
        {
            var script = new StringBuilder();

            _passwordParam.ApplyToPowershellScript(script, "p123");
            script.ToString().ShouldBeEmpty();
        }
        public void can_apply_to_powershell_script()
        {
            var script = new StringBuilder();

            _passwordParam.ApplyToPowershellScript(script, "Password!");
            script.ToString().ShouldContain("$pwd = \"Password!\"");
        }