public void TestImportFromInterferenceRecordsToDetails_ImportTwice_SecondNotEmpty() { int[,] relationMatrix1 = { {2, 0, 0, 0, 0, 1}, {0, 1, 2, 0, 0, 6}, {0, 0, 2, 1, 3, 8}, {0, 1, 0, 2, 1, 6} }; int[,] measureMatrix1 = ImportFromInterferenceRecordsToDetailsTestHelper.GetMeasureMatrix(relationMatrix1); int[,] relationMatrix2 = { {0, 0, 3, 0, 7, 2}, {0, 4, 0, 6, 0, 1}, {0, 0, 3, 5, 0, 4}, {1, 3, 0, 0, 0, 2} }; int[,] measureMatrix2 = ImportFromInterferenceRecordsToDetailsTestHelper.GetMeasureMatrix(relationMatrix2); int[,] relationMatrix = (new Matrix(relationMatrix1) + new Matrix(relationMatrix2)).IntValues; int[,] measureMatrix = (new Matrix(measureMatrix1) + new Matrix(measureMatrix2)).IntValues; helper.ClearData(); helper.GenerateRecords(relationMatrix1); helper.GenerateRecords(relationMatrix2); helper.AssertResults(relationMatrix, measureMatrix); }
public void TestImportFromInterferenceRecordsToDetails() { int[,] relationMatrix = { {2, 4, 0, 0, 0, 7}, {0, 1, 2, 0, 0, 6}, {0, 0, 2, 1, 3, 8}, {0, 1, 0, 2, 1, 6} }; helper.ClearData(); helper.GenerateRecords(relationMatrix); int[,] measureMatrix = ImportFromInterferenceRecordsToDetailsTestHelper.GetMeasureMatrix(relationMatrix); helper.AssertResults(relationMatrix, measureMatrix); }
public void TestImportFromInterferenceRecordsToDetails_EmptyMatrix() { int[,] relationMatrix = { {0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0} }; helper.ClearData(); helper.GenerateRecords(relationMatrix); int[,] measureMatrix = ImportFromInterferenceRecordsToDetailsTestHelper.GetMeasureMatrix(relationMatrix); helper.AssertResults(relationMatrix, measureMatrix); }