public void IntegrationTest_Find_UpperCase_Words_And_Order_them_Alphabetically() { //Arrange TestPresenter testPresenter = new TestPresenter(); testPresenter.FetchedInput = "This IS a STRING"; IntegrationTestStartUp startUp = new IntegrationTestStartUp(testPresenter); ModuleFactory moduleFactory = startUp.Configure(); //Act var sequenceAnalysisModule = moduleFactory.BuildModule(nameof(MenuOptionsEnum.SequenceAnalysis)); sequenceAnalysisModule.Execute(); //Assert Assert.NotEmpty(testPresenter.ShowedText); Assert.Contains("GIINRSST", testPresenter.ShowedText); }
public void IntegrationTest_Find_And_Sum_All_Numbers_Multiple_Of_3_5_Below_Limit() { //Arrange TestPresenter testPresenter = new TestPresenter(); testPresenter.FetchedInput = "25"; var expectedResult = 168; IntegrationTestStartUp startUp = new IntegrationTestStartUp(testPresenter); ModuleFactory moduleFactory = startUp.Configure(); //Act var sequenceAnalysisModule = moduleFactory.BuildModule(nameof(MenuOptionsEnum.SumOfMultiple)); sequenceAnalysisModule.Execute(); Assert.NotEmpty(testPresenter.ShowedText); Assert.Equal($"Output: {expectedResult}", testPresenter.ShowedText); }