public void read_impl_should_be_invoked_again_have_previously_returned_an_empty_message() { var expected = new SetIsWetMessage(true); var reader = new StubMessageReader(Message.Empty, Message.Empty, expected); Assert.Same(expected, reader.Read()); }
public void is_disposed_should_reflect_the_disposed_state_of_the_reader() { var reader = new StubMessageReader(); Assert.False(reader.IsDisposed); reader.Dispose(); Assert.True(reader.IsDisposed); }
public void read_should_throw_when_it_has_been_reader_has_been_disposed() { var reader = new StubMessageReader(); reader.Dispose(); Assert.Throws<ObjectDisposedException>(() => reader.Read()); }