public void PrintUsage_ShouldPrintUsage() { var actual = TextWriterHelper.InvokeWriterAction(ArgumentParser.PrintUsage); actual.Should().Contain("--help"); actual.Should().Contain("--version"); actual.Should().Contain("build"); actual.Should().Contain("options"); actual.Should().Contain("--stdout"); }
public void PrintVersion_ShouldPrintVersion() { var actual = TextWriterHelper.InvokeWriterAction(ArgumentParser.PrintVersion); actual.Should().MatchRegex(@"Bicep CLI version \d+\.\d+\.\d+(|-alpha) \([0-9a-f]{10}\)"); }