OpenKeyframe() public method

public OpenKeyframe ( int keyframe ) : IMessageStream
keyframe int
return IMessageStream
        public void can_open_zero_keyframe()
        {
            var endpoint = new LiveMessageStreamEndpoint();

            using(var stream = endpoint.OpenKeyframe(0))
            {
                Assert.NotNull(stream);
            }
        }
        public void can_read_from_keyframe_stream()
        {
            var buffer = new byte[1];
            var endpoint = new LiveMessageStreamEndpoint();

            using(var stream = endpoint.OpenKeyframe(0))
            {
                Assert.True(stream.Fill(buffer, 0, buffer.Length));
            }
        }
        public void open_keyframe_throws_if_keyframe_is_negative()
        {
            var endpoint = new LiveMessageStreamEndpoint();

            Assert.Throws<ArgumentOutOfRangeException>(() => endpoint.OpenKeyframe(-1).Dispose());
        }
        public void open_keyframe_throws_if_keyframe_does_not_exist()
        {
            var endpoint = new LiveMessageStreamEndpoint();

            Assert.Throws<IOException>(() => endpoint.OpenKeyframe(int.MaxValue).Dispose());
        }