public void ReadStringFromUrl() { using (In inObject = new In(UrlName)) { int expectedIndex = 0; while (!inObject.IsEmpty()) { string s = inObject.ReadString(); Assert.IsTrue(expectedIndex < InUnitTests.InTestWords.Length); Assert.AreEqual(InUnitTests.InTestWords[expectedIndex++], s); } } }