public void BuildPairBlocksTest()
        {
            var builder = new PairBuilder();
            var blockArray = builder.BuildPairBlocks(Core.Settings.BlockNumber);

            Assert.IsTrue(AllPairsIsFound(blockArray));
        }
        public void CongruenceArrayTest()
        {
            var builder = new PairBuilder();
            var blockArray = builder.BuildPairBlocks(Core.Settings.BlockNumber);

            for (int i = 0; i < blockArray.Length; i++)
            {
                Assert.AreEqual(blockArray[i].PairBlockId, Core.Settings.CongruenceArray[i]);
            }
        }
Exemple #3
0
 /// <summary>
 /// Собирает новые блоки.
 /// </summary>
 public void BuildBlocks()
 {
     var builder = new PairBuilder();
     blocks = builder.BuildPairBlocks(Settings.BlockNumber);
 }