private void GenerateTestUnit(ref RequestGenerator prg, bool expectedHasNext, string[] expectedReturn = null) { bool hasNext = prg.HasNext(); if (!expectedHasNext) { Assert.False(hasNext); return; } Assert.True(hasNext); Assert.AreEqual(expectedReturn, prg.Generate()); }