Class TestTools
This class was written when I was starting to do DIY Unit tests.
It should be depracated but is still being referenced.
I am now using the you-beaut Unit testing tools provided by VS.
Assembly: TowseyLibrary.dll
public static class TestTools
Fields
|
Improve this Doc
View Source
Declaration
public const string ExpectedResultsDir = "ExpectedTestResults"
Field Value
Methods
|
Improve this Doc
View Source
This test checks a score array (array of doubles) against a standard or benchmark previously stored.
Declaration
public static void CompareArrayWithBenchmark(string testName, double[] scoreArray, FileInfo scoreFile)
Parameters
|
Improve this Doc
View Source
Declaration
public static void CompareTwoArrays(double[] array1, double[] array2)
Parameters
|
Improve this Doc
View Source
This test checks two text/csv files to determine if they are the same.
Declaration
public static void FileEqualityTest(string testName, FileInfo testFile, FileInfo benchmarkFile)
Parameters
|
Improve this Doc
View Source
Declaration
public static void RecognizerScoresTest(string fileName, DirectoryInfo opDir, string testName, double[] scoreArray)
Parameters