public void hayes_should_be_visited_by_dos() { IModem hayes = new Hayes(); var mockLogger = new Mock <ILogger>(); IModemVisitor configureForDosVisitor = new ConfigureForDosVisitor(mockLogger.Object); hayes.Accept(configureForDosVisitor); mockLogger.Verify(logger => logger.Info("Hayes used with Dos configurator."), Times.Once); }
public void zoom_should_be_visited_by_dos() { IModem zoom = new Zoom(); var mockLogger = new Mock <ILogger>(); IModemVisitor configureForDosVisitor = new ConfigureForDosVisitor(mockLogger.Object); zoom.Accept(configureForDosVisitor); mockLogger.Verify(logger => logger.Info("Zoom used with Dos configurator."), Times.Once); }