public void FillByRandomWithMinMoreThanMaxArguments() { int n = 3; LinearEquation le = new LinearEquation(n); Assert.ThrowsException <ArgumentException>(() => le.FillByRandom(100, 10)); }
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)); }