Example #1
0
        public void TestSetup()
        {
            // protect against external changes on TimeProvider
            TimeProvider.ResetToDefault();

            KronaSystem TheKronaSystem = TestBlockchain.InitializeMockKronaSystem();

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

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

            _unit.VerifiedCount.ShouldBeEquivalentTo(0);
            _unit.UnVerifiedCount.ShouldBeEquivalentTo(0);
            _unit.Count.ShouldBeEquivalentTo(0);
        }
Example #2
0
 public void TestSetup()
 {
     TestBlockchain.InitializeMockKronaSystem();
 }