示例#1
0
        public void FillByRandomWithMinMoreThanMaxArguments()
        {
            int            n  = 3;
            LinearEquation le = new LinearEquation(n);

            Assert.ThrowsException <ArgumentException>(() => le.FillByRandom(100, 10));
        }
示例#2
0
        public void FillByRandomWithEqualSeeds()
        {
            int            n   = 3;
            LinearEquation le1 = new LinearEquation(n);
            LinearEquation le2 = new LinearEquation(n);

            le1.FillByRandom(-5, 10, 100);
            le2.FillByRandom(-5, 10, 100);
            Assert.IsTrue(((double[])le1).SequenceEqual((double[])le2));
        }