Beispiel #1
0
        public void FillByRandomValues()
        {
            LinearEquation le1 = new LinearEquation(5);
            LinearEquation le2 = new LinearEquation(5);

            le1.FillByRandomValues(-10.5, 10.5, 123);
            le2.FillByRandomValues(-10.5, 10.5, 123);
            Assert.IsTrue(((double[])le1).SequenceEqual((double[])le2));
        }
Beispiel #2
0
        public void FillByRandomValuesMinBiggerThanMax()
        {
            LinearEquation le = new LinearEquation(5);

            Assert.ThrowsException <ArgumentException>(() => le.FillByRandomValues(10.5, -10.5));
        }