Example #1
0
        public void Test_If_Incorrect_Exchange_Throws_Exception()
        {
            var inputData = new string[] { "EUR1/DKK", "1" };
            var mock      = new Mock <ICurrencyItemRepository>();

            var inputProcessService = new InputProcessService(mock.Object);

            Assert.ThrowsException <Exception>(() => inputProcessService.ProcessInputData(inputData));
        }
Example #2
0
        public void Test_If_Empty_input_data_Throws_Exception()
        {
            var inputData = new string[0];
            var mock      = new Mock <ICurrencyItemRepository>();

            var inputProcessService = new InputProcessService(mock.Object);

            Assert.ThrowsException <Exception>(() => inputProcessService.ProcessInputData(inputData));
        }