public void ToImmutable_should_return_expected_result()
        {
            var subject = new GridFSBucketOptions { BucketName = "bucket", ChunkSizeBytes = 123, ReadPreference = ReadPreference.Secondary, WriteConcern = WriteConcern.WMajority };

            var result = subject.ToImmutable();

            result.BucketName.Should().Be(subject.BucketName);
            result.ChunkSizeBytes.Should().Be(subject.ChunkSizeBytes);
            result.ReadPreference.Should().Be(subject.ReadPreference);
            result.WriteConcern.Should().Be(subject.WriteConcern);
        }
        public void constructor_with_immutable_other_should_initialize_instance()
        {
            var mutable = new GridFSBucketOptions { BucketName = "bucket", ChunkSizeBytes = 123, ReadPreference = ReadPreference.Secondary, WriteConcern = WriteConcern.WMajority };
            var other = mutable.ToImmutable();

            var result = new GridFSBucketOptions(other);

            result.BucketName.Should().Be(other.BucketName);
            result.ChunkSizeBytes.Should().Be(other.ChunkSizeBytes);
            result.ReadPreference.Should().Be(other.ReadPreference);
            result.WriteConcern.Should().Be(other.WriteConcern);
        }