コード例 #1
0
        public void CheckVersion()
        {
            var sb = new StringBuilder();

            var playbook = new Playbook("test").Version();

            playbook.Execute(x => sb.AppendLine(x));

            Assert.That(sb.ToString(), Does.Contain("ansible-playbook"));
        }
コード例 #2
0
        public void CheckOutput()
        {
            var sb = new StringBuilder();

            var playbook = new Playbook("../../../../playbooks/environment.yml");

            playbook.Execute(x => sb.AppendLine(x));

            var t = sb.ToString();

            Assert.Pass();
        }