public void Compare_Last16BitsMatch_IncrementCount() { var judge = new NumberJudge(); judge.Compare(245556042, 1431495498); Assert.AreEqual(1, judge.ValidCount); }
public NumberEngine(long aStart, long bStart) { _judge = new NumberJudge(); _generatorA = new NumberGenerator(16807, aStart); _generatorB = new NumberGenerator(48271, bStart); }
public NumberEngine(int aStart, int bStart, int aFilter, int bFilter) { _judge = new NumberJudge(); _generatorA = new NumberGenerator(16807, aStart, aFilter); _generatorB = new NumberGenerator(48271, bStart, bFilter); }