public void ChiSquareTest()
{
int[,] matrix =
{
{ 10, 9, 5, 7, 8 },
{ 1, 2, 0, 1, 2 },
{ 0, 0, 1, 0, 1 },
{ 1, 0, 0, 3, 0 },
{ 0, 2, 0, 0, 2 },
};
GeneralConfusionMatrix target = new GeneralConfusionMatrix(matrix);
double actual = target.ChiSquare;
Assert.AreEqual(19.43, actual, 0.01);
Assert.IsFalse(Double.IsNaN(actual));
}