public void GivenTwoImagesWhenSecondImageWasPreviouslyChosenThenFirstOneShouldBeChosen() { // arrange IEnumerable <string> links = new List <string>() { "link1", "link2" }; int lastImageIndex = 1; // act var(_, newIndex) = _uut.DownloadRandomSnakeImageAsync(links, lastImageIndex); // assert Assert.AreEqual(0, newIndex); }