public void NoInstallTest()
        {
            Terraform tool    = new Terraform();
            string    version = tool.GetActiveVersion();

            Assert.IsNull(version);
        }
        public void InstallOneWithActivateTest()
        {
            Terraform tool = new Terraform("0.11.0");

            tool.Install(true);

            Assert.AreEqual("0.11.0", tool.GetActiveVersion());
        }
        public void ReinstallTest()
        {
            Terraform tool = new Terraform("0.11.1");

            tool.Install(true);
            tool.Install(true);

            string version = tool.GetRawVersion();

            Assert.AreEqual("0.11.1", tool.GetActiveVersion());
        }
        public void InstallWithoutActivateTest()
        {
            Terraform firstTool = new Terraform("0.11.0");

            firstTool.Install(true);

            Terraform secondTool = new Terraform("0.11.1");

            secondTool.Install();

            Assert.AreEqual("0.11.0", firstTool.GetActiveVersion());
            Assert.AreEqual("0.11.0", secondTool.GetActiveVersion());
        }