public async Task LoadAsync2_TimeTesting_TheWholeDocument() { // Arrange LogLoader logDataLoader = new LogLoader(logDataParser, @"C:\Projekty\LoggingSW\vzorová data\bak550\7_5_2020"); // Act var data = await logDataLoader.LoadAsync(DateTime.Parse("7.5.2020 13:18:56"), DateTime.Parse("18.5.2020 13:38:33")); // Assert }
public async Task LoadAsync2_Fungujet(DateTime pocatek, DateTime konec, int expectedLength) { // Arrange LogLoader logDataLoader = new LogLoader(logDataParser, VZOROVA_CESTA); // Act var data = await logDataLoader.LoadAsync(pocatek, konec); int actualLength = data.First().Count(); // Assert Assert.Equal(expectedLength, actualLength); }