Exemplo n.º 1
0
        public void 拷貝SafeCollection_從Index0開始拷貝_拷貝的結果應該與SafList相同()
        {
            var safeCollection = new SafeCollection <int>();
            var fixture        = new Fixture();

            safeCollection.AddMany(fixture.Create <int>, 10);
            var array = new int[10];

            safeCollection.CopyTo(array, 0);
            array.Should().BeEquivalentTo(safeCollection);
        }