public void ChangeStream_should_throw_when_pipeline_is_null() { PipelineDefinition <BsonDocument, BsonDocument> pipeline = null; ChangeStreamStageOptions options = null; var exception = Record.Exception(() => pipeline.ChangeStream(options)); var argumentNullException = exception.Should().BeOfType <ArgumentNullException>().Subject; argumentNullException.ParamName.Should().Be("pipeline"); }