Example #1
0
        public async Task TestNegativeNumbers()
        {
            var task = new ComputeFibonacciSeriesTask();

            string result = await task.ExecuteAsync("-5");

            Assert.AreEqual("", result);

            result = await task.ExecuteAsync("-1");

            Assert.AreEqual("", result);
        }
Example #2
0
        public async Task TestTwo()
        {
            var task = new ComputeFibonacciSeriesTask();

            string result = await task.ExecuteAsync("2");

            Assert.AreEqual("0 1", result);


            result = await task.ExecuteAsync("5");

            Assert.AreEqual("0 1 1 2 3", result);
        }
Example #3
0
        public async Task TestOne()
        {
            var task = new ComputeFibonacciSeriesTask();

            string result = await task.ExecuteAsync("1");

            Assert.AreEqual("0", result);
        }