public void GenerateRandom_AllRandomNumbersAreDifferent() { var rd = new GenerateRandom(1, 10, 4); List <int> rdList = rd.RandomNumberList(); Assert.IsTrue(rdList[0] != rdList[1] && rdList[0] != rdList[2] && rdList[0] != rdList[3] && rdList[1] != rdList[2] && rdList[1] != rdList[3] && rdList[2] != rdList[3]); }
public void GenerateRandom_CorrectNumberOfRandomNumbersGenerated() { var rd = new GenerateRandom(1, 10, 4); List <int> rdList = rd.RandomNumberList(); Assert.IsTrue(rdList.Count == 4); }