public void TestListCount(double start, double end, double delta, int expected) { var task = new CalculateTasks(start, end, delta); var actual = task.ListValue().Count; Assert.Equal(expected, actual); }
public void TestCalculate(double a, double b, double x, double expected) { var task = new CalculateTasks(a, b); var(_, actual) = task.CalculateValue(x); Assert.Equal(expected, actual, 3); }
public void TestTaskTwo(double a, double b, double[] list, double[] expected) { var task = new CalculateTasks(a, b); var actual = new List <double>(); foreach (var item in list) { actual.Add(Round(task.CalculateValue(item).Item2, 3)); } Assert.Equal(expected, actual.ToArray()); }
public void TestTaskOne(double a, double b, double start, double end, double delta, double[] expected) { var task = new CalculateTasks(a, b, start, end, delta); var list = task.ListValue(); var actual = new List <double>(); foreach (var item in list) { actual.Add(Round(task.CalculateValue(item).Item2, 3)); } Assert.Equal(expected, actual.ToArray()); }