public void CheckSlae(long[][] slae, bool result)
        {
            var de = new DiophantineEquation(slae.Length, slae.Any() ? slae[0].Length - 1 : 0);

            de.SetMatrix(slae);
            var solve = de.Solve();

            Assert.Equal(result, solve);

            if (solve)
            {
                Assert.True(de.CheckResult());
            }
        }
        public void OneEquation(bool result, long right, params long[] parameters)
        {
            var de = new DiophantineEquation(1, parameters.Length);

            de.SetMatrix(new[] { parameters.Append(right) });
            var solve = de.Solve();

            Assert.Equal(solve, result);

            if (solve)
            {
                Assert.True(de.CheckResult());
            }
        }