Пример #1
0
        public string RotateMatrix()
        {
            try
            {
                var matrix = _matrixStore.Restore(_path);

                matrix.Rotate();

                _matrixStore.Save(_path, matrix);

                return(matrix.GetStringValue());
            }
            catch (Exception ex)
            {
                return(ex.Message);
            }
        }
Пример #2
0
        public void Restore_FileExist_GetMatrix()
        {
            var matrix = _matrixStore.Restore(_fileRestore + "matrix-restore.csv");

            Assert.That(matrix.GetStringValue(), Is.EqualTo("1 2\n3 4\n"));
        }