public void GetProductIdsArrayFromRequest1_ShouldReturnArrayItemsIfTheRequestHasValidKey(string key, int[] expectedResult) { // Arrange var requestParams = new KeyValuePair <string, string>[] { new KeyValuePair <string, string>(key, "1"), new KeyValuePair <string, string>(key, "2"), new KeyValuePair <string, string>(key, "3"), new KeyValuePair <string, string>(key, "4"), new KeyValuePair <string, string>(key, "5"), new KeyValuePair <string, string>(key, "6"), }; // Act var actualResult = _conversionService.GetProductIdsArrayBasedOnRequest(requestParams, "productids", out _, null); // Assert Assert.IsNotNull(actualResult); Assert.AreEqual(expectedResult, actualResult); }