public void GivenATopRightPointAtOrigin_WhenProcessing_ThenWillAddBoard()
        {
            var handler = new BattlefieldLineHandler();

            handler.Process(_contextMock.Object, "0 0");

            _contextMock.Verify(x => x.SetBattlefieldArea(It.IsNotNull <IBattlefieldArea>()));
        }
        public void GivenAValidConfigurationWithExtraWhitespaces_WhenProcessing_ThenWillAddBoard()
        {
            var handler = new BattlefieldLineHandler();

            handler.Process(_contextMock.Object, " 1  1 ");

            _contextMock.Verify(x => x.SetBattlefieldArea(It.IsNotNull <IBattlefieldArea>()));
        }
        public void GivenANegativeYPosition_WhenProcessing_ThenWillThrowFormatException()
        {
            var handler = new BattlefieldLineHandler();

            Assert.That(() => handler.Process(_contextMock.Object, "1 -1"), Throws.InstanceOf <FormatException>());
        }