Exemplo n.º 1
0
        /// <summary>
        /// 4. Запросы на поиск элементов и групп элементов
        /// </summary>
        private static async Task GetElementTests()
        {
            using (SparseMatrixRepSeq sparseMatrixRepSeq = new SparseMatrixRepSeq("4"))
            {
                sparseMatrixRepSeq.PrintMatrixFileNames();

                #region Добавление отдельных строк

                await CreateTestMatrix(sparseMatrixRepSeq);

                await GetElementAsyncTest(sparseMatrixRepSeq, 0, 0);
                await GetElementAsyncTest(sparseMatrixRepSeq, -1, 0);
                await GetElementAsyncTest(sparseMatrixRepSeq, 0, 100);
                await GetElementAsyncTest(sparseMatrixRepSeq, 1, 5);
                await GetElementAsyncTest(sparseMatrixRepSeq, 2, 5);
                await GetElementAsyncTest(sparseMatrixRepSeq, 5, 0);
                await GetElementAsyncTest(sparseMatrixRepSeq, 5, 5);
                await GetElementAsyncTest(sparseMatrixRepSeq, 5, 11);
                await GetElementAsyncTest(sparseMatrixRepSeq, 5, 12);

                #endregion
            }
        }