Exemplo n.º 1
0
        public void Setup()
        {
            _inputMock = new Mock <InputHandler>(standartNumberFormatInfo, standartCoordinatesDelimiter);
            _inputMock.Setup(_ => _.Parse(It.IsAny <object>())).Returns((object obj) =>
            {
                var handler             = new StringInput(standartNumberFormatInfo, standartCoordinatesDelimiter);
                handler.OnIncorrect    += Handler_OnIncorrect;
                handler.OnVeryBigDigit += Handler_OnVeryBigDigit;
                return(handler.Parse(obj));
            });

            _correctCoordinates = _correctDigitStr + "," + _correctDigitStr;
        }