public void NextResult() { HsqlDataReader testSubject = new HsqlDataReader(new int[] { 1, 2, 3, 4 }); Assert.AreEqual(1, testSubject.RecordsAffected); Assert.That(testSubject.NextResult()); Assert.AreEqual(2, testSubject.RecordsAffected); Assert.That(testSubject.NextResult()); Assert.AreEqual(3, testSubject.RecordsAffected); Assert.That(testSubject.NextResult()); Assert.AreEqual(4, testSubject.RecordsAffected); Assert.That(!testSubject.NextResult()); }
public void NextResult() { HsqlDataReader testSubject = new HsqlDataReader(new int[] { 1, 2, 3, 4 }); Assert.AreEqual(1, testSubject.RecordsAffected); Assert.That(testSubject.NextResult()); Assert.AreEqual(2, testSubject.RecordsAffected); Assert.That(testSubject.NextResult()); Assert.AreEqual(3, testSubject.RecordsAffected); Assert.That(testSubject.NextResult()); Assert.AreEqual(4, testSubject.RecordsAffected); Assert.That(!testSubject.NextResult()); }