예제 #1
0
        public void FormattedOutputDataProvider_Only_ResultInput_Test()
        {
            IFormattedOutputDataProvider outputProvider = new FormattedOutputDataProvider();
            string inputValue = "r:1:2:3";
            bool   success    = BlAccessor.ProcessResultInput(inputValue);

            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData != NotEnoughExpectedOutputData);
        }
예제 #2
0
        public void FormattedOutputDataProvider_Without_Result_Input_Test()
        {
            IFormattedOutputDataProvider outputProvider = new FormattedOutputDataProvider();
            string inputValue = "w:2:3";
            bool   success    = BlAccessor.ProcessBetInput(inputValue);

            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);

            inputValue = "p:1:3";
            success    = BlAccessor.ProcessBetInput(inputValue);
            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);

            inputValue = "e:1,2:3";
            success    = BlAccessor.ProcessBetInput(inputValue);
            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);

            inputValue = "q:1,2:3";
            success    = BlAccessor.ProcessBetInput(inputValue);
            Assert.IsTrue(success);
            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);
        }
예제 #3
0
        /// <summary>
        /// Prepare the dividends data for display
        /// </summary>
        private static void ProcessDividendOutput()
        {
            IFormattedOutputDataProvider outputProvider = new FormattedOutputDataProvider();

            DisplayOutput(outputProvider.OutputData);
        }
예제 #4
0
        public void FormattedOutputDataProvider_Without_Any_Input_Test()
        {
            IFormattedOutputDataProvider outputProvider = new FormattedOutputDataProvider();

            Assert.IsTrue(outputProvider.OutputData == NotEnoughExpectedOutputData);
        }