private void GetTestResult(IStatisticalTest test) { var pValue = test.GetPValue(_testValue); var result = pValue >= EXPECTED_VALUE ? "The sequence is random" : "The sequence is non-random"; Console.WriteLine(test.GetType().Name); Console.WriteLine($"P-Value: {pValue}"); Console.WriteLine($"Result: {result}\n"); }
private void GetTestResult(IStatisticalTest test) { var pValue = test.GetPValue(_testValue); var result = pValue >= EXPECTED_VALUE ? "Последовательность случайна" : "Последовательность неслучайна"; Console.WriteLine(test.GetType().Name); Console.WriteLine($"P-значение: {pValue}"); Console.WriteLine($"Результат: {result}\n"); }