Exemplo n.º 1
0
        public void PluggedCharactersInvalidMustThrowException(string jumpers, string expectedError)
        {
            //Arrange
            var plugBoard = new PlugBoard();

            //Act & Assert
            var exception =
                Assert.Throws <Exception>(() => plugBoard.PlugJumpers(jumpers));

            Assert.Equal(expectedError, exception.Message);
        }
Exemplo n.º 2
0
        public void PluggedCharactersAreValid(string jumpers, string expected)
        {
            //Arrange
            var plugBoard = new PlugBoard();

            //Act
            plugBoard.PlugJumpers(jumpers);

            //Assert
            Assert.Equal(expected, plugBoard.WiredSequence);
        }