public void CanValidateModel() { TestCaseRunner <ValidationApp> testCaseRunner = new TestCaseRunner <ValidationApp>(TestOutputHelper, new AppSettings() { Case = Case.LowerCase }); testCaseRunner.Run("TestCases/ValidationTests.CanValidateModel.Input.json", "TestCases/ValidationTests.CanValidateModel.Output.json"); }
public void ReadValueTest(string testCaseName) { TestCaseRunner <MyTestApp> testCaseRunner = new TestCaseRunner <MyTestApp>(TestOutputHelper, new AppSettings { MethodArgumentMode = ArgumentMode.Option }); testCaseRunner.Run($"TestCases/MyTestApp.{testCaseName}.Input.json", $"TestCases/MyTestApp.{testCaseName}.Output.json"); }
public void TestValidFlagsWithDefaultSettings() { TestCaseRunner <ValidFlagsApplication> testCaseRunner = new TestCaseRunner <ValidFlagsApplication>(TestOutputHelper, new AppSettings { MethodArgumentMode = ArgumentMode.Option }); testCaseRunner.Run("TestCases/FlagTests.TestValidFlagsWithDefaultSettings.Input.json", "TestCases/FlagTests.TestValidFlagsWithDefaultSettings.Output.json"); }
public void CanReadModels() { TestCaseRunner <ModelApp> testCaseRunner = new TestCaseRunner <ModelApp>(TestOutputHelper, new AppSettings { Case = Case.KebabCase }); testCaseRunner.Run( inputFileName: "TestCases/ModelTests.ModelTests.Input.json", outputFileName: "TestCases/ModelTests.ModelTests.Output.json"); }
public void TestValidFlagsWithExplicitBooleanMode() { TestCaseRunner <FlagAppForExplicitBooleanTest> testCaseRunner = new TestCaseRunner <FlagAppForExplicitBooleanTest>(TestOutputHelper, new AppSettings { BooleanMode = BooleanMode.Explicit, MethodArgumentMode = ArgumentMode.Option }); testCaseRunner.Run("TestCases/FlagTests.TestValidFlagsWithExplicitBooleanMode.Input.json", "TestCases/FlagTests.TestValidFlagsWithExplicitBooleanMode.Output.json"); }