public void ReadBackpointer_WhenStateIsBeforeHeader_ThrowsInvalidOperationException() { // Arrange _flvReader = _flvReaderObjectMother.CreateFlvReaderWithHeader(); // Act and assert. Assert.Throws <InvalidOperationException>(() => _flvReader.ReadBackpointer()); }
public void ReadBackpointer_WhenStateIsBeforeTag_ThrowsInvalidOperationException() { // Arrange _flvReader = _flvReaderObjectMother.CreateFlvReaderWithTag(); // Act and assert. Assert.Throws<InvalidOperationException>(() => _flvReader.ReadBackpointer()); }
public void ReadBackpointer_ReachedEndOfStream_ThrowsInvalidOperationException() { // Arrange _flvReader = _flvReaderObjectMother.CreateEmptyFlvReader(); _flvReader.MoveToBeforeBackpointerState(); // Act and assert. Assert.Throws <InvalidOperationException>(() => _flvReader.ReadBackpointer()); }
public void ReadBackpointer_ReachedEndOfStream_ThrowsInvalidOperationException() { // Arrange _flvReader = _flvReaderObjectMother.CreateEmptyFlvReader(); _flvReader.MoveToBeforeBackpointerState(); // Act and assert. Assert.Throws<InvalidOperationException>(() => _flvReader.ReadBackpointer()); }
public void ReadBackpointer_WhenStateIsBeforeBackpointer_ReturnsBackpointer() { // Arrange _flvReader = _flvReaderObjectMother.CreateFlvReaderWithBackpointer(); // Act var backpointer = _flvReader.ReadBackpointer(); // Assert Assert.NotNull(backpointer); }