Пример #1
0
        public void CreateChunk_NotLastChunk()
        {
            var data = new byte[] {3, 1, 4, 1, 5};

            // Act
            IDataChunk dataChunk = new DataChunk(data, false);

            // Assert
            Assert.That(dataChunk.ReadonlyChunkData, Is.EquivalentTo(data));
            Assert.That(dataChunk.IsLastChunk, Is.False);
        }
Пример #2
0
        public void Size_IsNotNecessarilyEqualTo_ArraySize()
        {
            // Act
            IDataChunk dataChunk = new DataChunk(new byte[25], 20, false);

            // Assert
            Assert.That(dataChunk.ReadonlyChunkData.Length, Is.EqualTo(25));
            Assert.That(dataChunk.Count, Is.EqualTo(20));
        }