Exemplo n.º 1
0
        public void Format_OutputStartsWithInput()
        {
            var resultString = formatter.FormatToString(
                new MultiplicationResult(
                    1,
                    2,
                    2,
                    new List <MultiplicationStep>()
            {
                new MultiplicationStep(1, 2, true)
            }
                    )
                );

            resultString.Should().StartWith("1 * 2\n=====\n",
                                            "the input must be printed at the beginning, followed by a delimiter");
        }
 internal void Run(int left, int right)
 {
     System.Console.WriteLine(
         formatter.FormatToString(
             multiplier.Multiply(left, right)
             )
         );
 }