Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    TestTools
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: TowseyLibrary
    Assembly: TowseyLibrary.dll
    Syntax
    public static class TestTools

    Fields

    | Improve this Doc View Source

    ExpectedResultsDir

    Declaration
    public const string ExpectedResultsDir = "ExpectedTestResults"
    Field Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    CompareArrayWithBenchmark(String, Double[], FileInfo)

    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
    Type Name Description
    String testName
    Double[] scoreArray
    FileInfo scoreFile
    | Improve this Doc View Source

    CompareTwoArrays(Double[], Double[])

    Declaration
    public static void CompareTwoArrays(double[] array1, double[] array2)
    Parameters
    Type Name Description
    Double[] array1
    Double[] array2
    | Improve this Doc View Source

    FileEqualityTest(String, FileInfo, FileInfo)

    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
    Type Name Description
    String testName
    FileInfo testFile
    FileInfo benchmarkFile
    | Improve this Doc View Source

    RecognizerScoresTest(String, DirectoryInfo, String, Double[])

    Declaration
    public static void RecognizerScoresTest(string fileName, DirectoryInfo opDir, string testName, double[] scoreArray)
    Parameters
    Type Name Description
    String fileName
    DirectoryInfo opDir
    String testName
    Double[] scoreArray
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top