コード例 #1
0
        public void TestSetup()
        {
            // protect against external changes on TimeProvider
            TimeProvider.ResetToDefault();

            CamSystem TheCamSystem = TestBlockchain.InitializeMockCamSystem();

            // Create a MemoryPool with capacity of 100
            _unit = new MemoryPool(TheCamSystem, 100);

            // Verify capacity equals the amount specified
            _unit.Capacity.ShouldBeEquivalentTo(100);

            _unit.VerifiedCount.ShouldBeEquivalentTo(0);
            _unit.UnVerifiedCount.ShouldBeEquivalentTo(0);
            _unit.Count.ShouldBeEquivalentTo(0);
        }
コード例 #2
0
ファイル: UT_Consensus.cs プロジェクト: camchain/cam
 public void TestSetup()
 {
     TestBlockchain.InitializeMockCamSystem();
 }