public void Test2Orders() { // arrange List <string> data = new List <string>(); data.Add("[email protected] 2021-02-11 10:00 P01 1"); data.Add("[email protected] 11-02-2021 15:00"); data.Add("P02b 2"); int ordersQnty = 1; IData fileData = new DataStub(data); // act var orders = ReportsGenerator.ReadOrders(fileData); int items = orders.Sum(o => o.Items.Count); // assert ordersQnty.Should().Be(items); }