BitSharp.Core.Test.Workers.TargetChainWorkerTest.AssertBlockListEquals C# (CSharp) Method

AssertBlockListEquals() private static method

private static AssertBlockListEquals ( ChainedHeader expected, IImmutableList actual ) : void
expected BitSharp.Core.Domain.ChainedHeader
actual IImmutableList
return void
        private static void AssertBlockListEquals(ChainedHeader[] expected, IImmutableList<ChainedHeader> actual)
        {
            Assert.AreEqual(expected.Length, actual.Count);
            for (var i = 0; i < actual.Count; i++)
                Assert.AreEqual(expected[i], actual[i]);
        }
    }