public void isOption_ValidOptions_ReturnFalse() { //arrange string withSlash = "/"; string goodOp = "good"; //act var wrongGood = CLIUsage.isOption(withSlash + goodOp); //assert Assert.IsFalse(wrongGood, "not an option"); }
public void WayBack_ValidOptions_ReturnFalse() { //arrange string isNotWayBackOption_1 = "--v"; string isNotWayBackOption_2 = "/j"; //act var underTestF_1 = CLIUsage.WayBack(isNotWayBackOption_1); var underTestF_2 = CLIUsage.WayBack(isNotWayBackOption_2); //assert Assert.IsFalse(underTestF_1); Assert.IsFalse(underTestF_2); }
public void Version_InvalidOptions_ReturnFalse() { //arrange string isNotVersion_1 = "--w"; string isNotVersion_2 = "-v"; //act var underTestF_1 = CLIUsage.Version(isNotVersion_1); var underTestF_2 = CLIUsage.Version(isNotVersion_2); //assert Assert.IsFalse(underTestF_1); Assert.IsFalse(underTestF_2); }
public void WayBack_ValidOptions_ReturnTrue() { //arrange string isWayBackOption_1 = "--w"; string isWayBackOption_2 = "--wayback"; string isWayBackOption_3 = "/w"; //act var underTestT_1 = CLIUsage.WayBack(isWayBackOption_1); var underTestT_2 = CLIUsage.WayBack(isWayBackOption_2); var underTestT_3 = CLIUsage.WayBack(isWayBackOption_3); //assert Assert.IsTrue(underTestT_1); Assert.IsTrue(underTestT_2); Assert.IsTrue(underTestT_3); }
public void Version_ValidOptions_ReturnTrue() { //arrange string isVersionOpt_1 = "--v"; string isVersionOpt_2 = "--version"; string isVersionOpt_3 = "/v"; //act var underTestT_1 = CLIUsage.Version(isVersionOpt_1); var underTestT_2 = CLIUsage.Version(isVersionOpt_2); var underTestT_3 = CLIUsage.Version(isVersionOpt_3); //assert Assert.IsTrue(underTestT_1); Assert.IsTrue(underTestT_2); Assert.IsTrue(underTestT_3); }
public void isOption_ValidOptions_ReturnTrue() { //arrange string withDashDash = "--"; string withSlash = "/"; string jsonOp = "j"; string versionOp = "v"; string waybackOp = "w"; string goodOp = "good"; //act var dashJson = CLIUsage.isOption(withDashDash + jsonOp); var slashJson = CLIUsage.isOption(withSlash + jsonOp); var dashVersion = CLIUsage.isOption(withDashDash + versionOp); var dashGood = CLIUsage.isOption(withDashDash + goodOp); var slashWayback = CLIUsage.isOption(withSlash + waybackOp); //assert Assert.IsTrue(dashJson, "not an option"); Assert.IsTrue(slashJson, "not an option"); Assert.IsTrue(dashVersion, "not an option"); Assert.IsTrue(dashGood, "not an option"); Assert.IsTrue(slashWayback, "not an option"); }