public void ShouldInsertToCollection_WhenStringIsNotNull() { var consoleWriterMock = new Mock <IConsoleWriter>(); var consoleReaderMock = new Mock <IConsoleReader>(); var userInteraction = new UserInteraction(consoleWriterMock.Object, consoleReaderMock.Object); userInteraction.AddAction("action"); Assert.IsTrue(userInteraction.ActionLog.Contains("action")); }