src/Kingdom.OrTools.Sat.Samples.Tests/SudokuSolverTests.cs
/// <summary>
/// Verifies the problem represented by <paramref name="theValuesText"/>.
/// </summary>
/// <param name="theValuesText"></param>
Verifies the problem represented by .
Verifies the problem represented by .
private void VerifyProblem(string theValuesText)
        {
            Assert.NotNull(theValuesText);
            Assert.Equal(MaximumValue * MaximumValue, theValuesText.Length);
            void ReportTheValues()
            {
                OutputHelper.WriteLine($"The String: \"{theValuesText}\"");
            }
            ReportTheValues();
            var theValues = theValuesText.ToCharArray().Select(x => int.Parse(x.ToString())).ToArray();
            VerifyProblem(theValues);
        }
private void VerifyProblem ( string theValuesText ) { Assert . NotNull ( theValuesText ) ; Assert . Equal ( MaximumValue * MaximumValue , theValuesText . Length ) ; void ReportTheValues ( ) { OutputHelper . WriteLine ( $" The String:  \" { theValuesText } \" " ) ; } ReportTheValues ( ) ; var theValues = theValuesText . ToCharArray ( ) . Select ( x => int . Parse ( x . ToString ( ) ) ) . ToArray ( ) ; VerifyProblem ( theValues ) ; }
Verifies the problem represented by .
Verifies the problem represented by .
theValuesText
string
None