public void EmptyArgumentsTest() { var predictionCLI = new PredictionCLI(); Assert.IsNotNull(predictionCLI); var argResult = predictionCLI.LoadArguments(new string[] { }); Assert.IsFalse(argResult); }
public void RunPrediction_Null() { var predictionCLI = new PredictionCLI(); Assert.IsNotNull(predictionCLI); predictionCLI.LoadArguments(null); predictionCLI.RunPrediction(); }
public void NullArgumentsTest() { var predictionCLI = new PredictionCLI(); Assert.IsNotNull(predictionCLI); var argResult = predictionCLI.LoadArguments(null); Assert.IsFalse(argResult); }
internal static void Run(string[] args) { var predictionCli = new PredictionCLI(); if (!predictionCli.LoadArguments(args)) { return; } predictionCli.RunPrediction(); }
public void InitializedArgumentsInvalidEvaluateTest() { var predictionCLI = new PredictionCLI(); Assert.IsNotNull(predictionCLI); var args = new List <string> { "-e" }; var argResult = predictionCLI.LoadArguments(args.ToArray()); Assert.IsFalse(argResult); }
public void RunPrediction_InitWithInvalidPredictor() { var predictionCLI = new PredictionCLI(); Assert.IsNotNull(predictionCLI); var args = new List <string> { "-pd", "prediction.txt", "-pr", "wick" }; predictionCLI.LoadArguments(args.ToArray()); predictionCLI.RunPrediction(); }
public void RunPrediction_InitWithActualModel_Predict() { var predictionCLI = new PredictionCLI(); Assert.IsNotNull(predictionCLI); var args = new List <string> { "-pd", "prediction.txt", "-pr", new WarriorsPredictor().PredictorName }; predictionCLI.LoadArguments(args.ToArray()); predictionCLI.RunPrediction(); }
public void RunPrediction_InitProperlyEvaluate() { var predictionCLI = new PredictionCLI(); Assert.IsNotNull(predictionCLI); var args = new List <string> { "-pd", "test.txt", "-pr", new WarriorsPredictor().PredictorName, "-e" }; predictionCLI.LoadArguments(args.ToArray()); predictionCLI.RunPrediction(); }
public void InitializedArgumentsValidTest() { var predictionCLI = new PredictionCLI(); Assert.IsNotNull(predictionCLI); var args = new List <string> { "-pr", "warriors", "-pd", "test.txt", "-td", "test.txt", "-e" }; var argResult = predictionCLI.LoadArguments(args.ToArray()); Assert.IsTrue(argResult); }