public void StartReceivingEvents_WhenDisposed_ThrowObjectDisposedException() { // Arrange sut.Dispose(); // Act Action act = () => sut.StartReceivingEvents(); // Assert act.Should().Throw <ObjectDisposedException>().WithMessage( "Cannot access a disposed object.\r\nObject name: 'subscriptionClients'."); }