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 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); }