public void CalculatePrimeNumbers4() { bool actualEqualsExpected = true; List <int> expected = new List <int>() { 1, 2, 3, 5 }; List <int> actual = PrimeNumbers.CalculatePrimeNumbers(4); for (int i = 0; i < actual.Count; i++) { if (expected[i] != actual[i]) { actualEqualsExpected = false; } } Assert.IsTrue(actualEqualsExpected); }