コード例 #1
0
        public void ReadBackpointer_WhenStateIsBeforeHeader_ThrowsInvalidOperationException()
        {
            // Arrange
            _flvReader = _flvReaderObjectMother.CreateFlvReaderWithHeader();

            // Act and assert.
            Assert.Throws <InvalidOperationException>(() => _flvReader.ReadBackpointer());
        }
コード例 #2
0
        public void ReadBackpointer_WhenStateIsBeforeTag_ThrowsInvalidOperationException()
        {
            // Arrange
            _flvReader = _flvReaderObjectMother.CreateFlvReaderWithTag();

            // Act and assert.
            Assert.Throws<InvalidOperationException>(() => _flvReader.ReadBackpointer());
        }
コード例 #3
0
        public void ReadBackpointer_ReachedEndOfStream_ThrowsInvalidOperationException()
        {
            // Arrange
            _flvReader = _flvReaderObjectMother.CreateEmptyFlvReader();
            _flvReader.MoveToBeforeBackpointerState();

            // Act and assert.
            Assert.Throws <InvalidOperationException>(() => _flvReader.ReadBackpointer());
        }
コード例 #4
0
        public void ReadBackpointer_ReachedEndOfStream_ThrowsInvalidOperationException()
        {
            // Arrange
            _flvReader = _flvReaderObjectMother.CreateEmptyFlvReader();
            _flvReader.MoveToBeforeBackpointerState();

            // Act and assert.
            Assert.Throws<InvalidOperationException>(() => _flvReader.ReadBackpointer());
        }
コード例 #5
0
        public void ReadBackpointer_WhenStateIsBeforeBackpointer_ReturnsBackpointer()
        {
            // Arrange
            _flvReader = _flvReaderObjectMother.CreateFlvReaderWithBackpointer();

            // Act
            var backpointer = _flvReader.ReadBackpointer();

            // Assert
            Assert.NotNull(backpointer);
        }
コード例 #6
0
        public void ReadBackpointer_WhenStateIsBeforeBackpointer_ReturnsBackpointer()
        {
            // Arrange
            _flvReader = _flvReaderObjectMother.CreateFlvReaderWithBackpointer();

            // Act
            var backpointer = _flvReader.ReadBackpointer();

            // Assert
            Assert.NotNull(backpointer);
        }