Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
Fixed unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tathamoddie committed Aug 25, 2011
1 parent c304e12 commit 78966db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UnitTests/UniqueIdGeneratorTest.cs
Expand Up @@ -73,9 +73,9 @@ public void NextIdShouldReturnNumbersSequentially()
BatchSize = 3
};

Assert.AreEqual(0, subject.NextId("test"));
Assert.AreEqual(1, subject.NextId("test"));
Assert.AreEqual(2, subject.NextId("test"));
Assert.AreEqual(3, subject.NextId("test"));
}

[Test]
Expand All @@ -91,12 +91,12 @@ public void NextIdShouldRollOverToNewBlockWhenCurrentBlockIsExhausted()
BatchSize = 3
};

Assert.AreEqual(0, subject.NextId("test"));
Assert.AreEqual(1, subject.NextId("test"));
Assert.AreEqual(2, subject.NextId("test"));
Assert.AreEqual(3, subject.NextId("test"));
Assert.AreEqual(250, subject.NextId("test"));
Assert.AreEqual(251, subject.NextId("test"));
Assert.AreEqual(252, subject.NextId("test"));
Assert.AreEqual(253, subject.NextId("test"));
}

[Test]
Expand Down

0 comments on commit 78966db

Please sign in to comment.