public async Task InsertProductTest() { //Arrange var expected = _operations.ProductData.Count + 1; await Task.Run(() => _operations.AddProductData("Spinach", 5, 10)); _operations.LoadProductData(); //Act var actual = await Task.Run(() => _operations.ProductData.Count); //Assert Assert.That(actual, Is.EqualTo(expected)); }