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 InstallOneWithActivateTest() { Terraform tool = new Terraform("0.11.0"); tool.Install(true); Assert.AreEqual("0.11.0", 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()); }
public void GetVersions() { string[] versionInstalls = new string[] { "0.11.2", "0.11.3" }; foreach (string versionInstall in versionInstalls) { Terraform tool = new Terraform(versionInstall); tool.Install(); } Terraform testTool = new Terraform(); Assert.AreEqual(versionInstalls.Length, testTool.AllVersions.Count); }
public void InvalidVersionTest() { Terraform tool = new Terraform("2.0.0"); tool.Install(); }