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); }
public void PluggedCharactersAreValid(string jumpers, string expected) { //Arrange var plugBoard = new PlugBoard(); //Act plugBoard.PlugJumpers(jumpers); //Assert Assert.Equal(expected, plugBoard.WiredSequence); }