public void Fibonaci_ArrangeResults_Success(int number, int expected) { // arrange var fiboCalculator = new FiboCalculator(); // act var result = fiboCalculator.Fibonaci(number); // assert Assert.Equal(expected, result); }
static void Main(string[] args) { var fc = new FiboCalculator(); for (int i = 3; i < 10; i++) { Console.WriteLine(fc.Fibonaci(i)); } Console.ReadLine(); }
public void Fibonaci_Scenario_Expected() { // arrange var fiboCalculator = new FiboCalculator(); // act var result = fiboCalculator.Fibonaci(5); // assert Assert.Equal(5, result); }
public void Fibonaci_Scenario_Expected(int number, int expected) { // arrange var fiboCalculator = new FiboCalculator(); // act var result = fiboCalculator.Fibonaci(number); // assert Assert.Equal(expected, result); }