示例#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);
        }
示例#2
0
        public void PluggedCharactersAreValid(string jumpers, string expected)
        {
            //Arrange
            var plugBoard = new PlugBoard();

            //Act
            plugBoard.PlugJumpers(jumpers);

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