public void Test_AverageByMedianInterface() { double expected = 8.0; double actual = FirstCalculator.CalculateAverage(values, new AverageMedian()); Assert.AreEqual(expected, actual, 0.000001); }
public void Calculate_First_100() { //var calculator = CreateCalculator(100, MyTypes.First); var calculator = new FirstCalculator() { Number = 100 }; var result = calculator.Calculate(); Assert.AreEqual(100, result); }