public void TestFindFirstRngPositionFailure() { MockRngHelper rng = GetHelper(); Assert.IsFalse(rng.FindFirstRngPosition(10)); Assert.IsFalse(rng.FindFirstRngPosition(85)); Assert.IsFalse(rng.FindFirstRngPosition(98)); Assert.IsFalse(rng.FindFirstRngPosition(500)); }
public void TestReinitialize() { MockRngHelper rng = GetHelper(); Assert.IsTrue(rng.FindFirstRngPosition(92)); Assert.IsTrue(rng.FindNextRngPosition(95)); rng.Reinitialize(); Assert.IsFalse(rng.FindNextRngPosition(88)); }
public void TestFindNextRngPositionFirstPosition_Basic() { MockRngHelper rng = GetHelper(); Assert.IsTrue(rng.FindFirstRngPosition(91)); Assert.IsTrue(rng.FindNextRngPosition(88)); Assert.IsTrue(rng.FindNextRngPosition(92)); Assert.IsTrue(rng.FindNextRngPosition(94)); Assert.IsTrue(rng.FindNextRngPosition(94)); Assert.IsTrue(rng.FindNextRngPosition(94)); Assert.IsTrue(rng.FindNextRngPosition(95)); }
public void TestFindFirstRngPositionSuccessful() { MockRngHelper rng = GetHelper(); Assert.IsTrue(rng.FindFirstRngPosition(86)); Assert.IsTrue(rng.FindFirstRngPosition(88)); Assert.IsTrue(rng.FindFirstRngPosition(90)); Assert.IsTrue(rng.FindFirstRngPosition(92)); Assert.IsTrue(rng.FindFirstRngPosition(95)); Assert.IsTrue(rng.FindFirstRngPosition(97)); }
public void TestFindNextRngPositionFirstPosition() { MockRngHelper rng = GetHelper(); Assert.IsTrue(rng.FindFirstRngPosition(92)); Assert.IsTrue(rng.FindNextRngPosition(95)); Assert.IsTrue(rng.FindNextRngPosition(88)); Assert.IsTrue(rng.FindNextRngPosition(89)); Assert.IsTrue(rng.FindNextRngPosition(95)); Assert.IsTrue(rng.FindNextRngPosition(93)); Assert.IsTrue(rng.FindNextRngPosition(94)); Assert.IsTrue(rng.FindNextRngPosition(96)); Assert.IsTrue(rng.FindNextRngPosition(92)); Assert.IsTrue(rng.FindNextRngPosition(97)); Assert.IsTrue(rng.FindNextRngPosition(88)); Assert.IsFalse(rng.FindNextRngPosition(94)); }
public void TestFindNextRngPositionWithMultipleGroupMembers() { MockRngHelper rng = GetHelper(TestUtils.GetComplexCharacterGroup()); Assert.IsTrue(rng.FindFirstRngPosition(94)); Assert.IsTrue(rng.FindNextRngPosition(142)); Assert.IsTrue(rng.FindNextRngPosition(215)); Assert.IsTrue(rng.FindNextRngPosition(91)); Assert.IsTrue(rng.FindNextRngPosition(139)); Assert.IsTrue(rng.FindNextRngPosition(203)); Assert.IsTrue(rng.FindNextRngPosition(94)); Assert.IsTrue(rng.FindNextRngPosition(140)); Assert.IsTrue(rng.FindNextRngPosition(219)); Assert.IsTrue(rng.FindNextRngPosition(88)); Assert.IsTrue(rng.FindNextRngPosition(141)); Assert.IsFalse(rng.FindNextRngPosition(90)); Assert.IsFalse(rng.FindNextRngPosition(205)); }
public void TestFindNextRngPositionFirstPositionCanContinueAfterFailing() { MockRngHelper rng = GetHelper(); Assert.IsTrue(rng.FindFirstRngPosition(92)); Assert.IsTrue(rng.FindNextRngPosition(95)); Assert.IsTrue(rng.FindNextRngPosition(88)); Assert.IsTrue(rng.FindNextRngPosition(89)); Assert.IsTrue(rng.FindNextRngPosition(95)); Assert.IsFalse(rng.FindNextRngPosition(100)); Assert.IsTrue(rng.FindNextRngPosition(93)); Assert.IsTrue(rng.FindNextRngPosition(94)); Assert.IsTrue(rng.FindNextRngPosition(96)); Assert.IsFalse(rng.FindNextRngPosition(85)); Assert.IsTrue(rng.FindNextRngPosition(92)); Assert.IsTrue(rng.FindNextRngPosition(97)); Assert.IsTrue(rng.FindNextRngPosition(88)); Assert.IsFalse(rng.FindNextRngPosition(94)); Assert.IsTrue(rng.FindNextRngPosition(97)); }