public void NoMoreSolutionsChecking() { SystemOLE listofcoef = new SystemOLE(4); listofcoef.Add(new LinearEquation("1, 2, 3, 4")); listofcoef.Add(new LinearEquation("15, 35, 14, 9")); listofcoef.Add(new LinearEquation("12, 45, 89, 0")); listofcoef.Add(new LinearEquation("1, 2, 3, 6")); listofcoef.StepConvert(); Assert.Equals(typeof(ArgumentException), listofcoef.GaussMethod()); }
public void InfinitySolutionsChecking() { SystemOLE listofcoef = new SystemOLE(4); listofcoef.Add(new LinearEquation("1, 2, 3, 4")); listofcoef.Add(new LinearEquation("3, 5, 7, 9")); listofcoef.Add(new LinearEquation("5, 8, 4, 2")); listofcoef.Add(new LinearEquation("2, 14, 8, 11")); listofcoef.StepConvert(); Assert.Equals(typeof(ArgumentException), listofcoef.GaussMethod()); }