/// <summary> /// Create a new result expecting a string input /// </summary> /// <param name="expected">The expected value</param> /// <param name="compareModus">Defines how the expected value and input are compared (case sensitivity)</param> public StringResult(string expected, StringCompareModes compareModus) { Expected = expected; CompareMode = compareModus; }
/// <summary> /// Add an integer solution to the answer cell /// </summary> /// <param name="row">The row of the answer cell</param> /// <param name="column">The column of the answer cell</param> /// <param name="expectedValue">The expected value of the answer cell</param> /// <param name="compareMode">Defines how the expected value and input are compared (case sensitivity)</param> protected void AddStringOrNullSolution(int row, int column, string expectedValue, StringCompareModes compareMode = StringCompareModes.Exact) { IResult result = new StringOrNullResult(expectedValue, compareMode); AddSolution(result, row, column); }
/// <summary> /// Create a new result expecting a string or null input /// </summary> /// <param name="expected">The expected value</param> /// <param name="compareMode">Defines how the expected value and input are compared (case sensitivity)</param> public StringOrNullResult(string expected, StringCompareModes compareMode) { Expected = expected; CompareMode = compareMode; }