public void TestCreateColumnFamilyWithCompression()
        {
            InternalTestCreateColumnFamilyCompression(ColumnFamilyCompression.LZ4(new CompressionOptions {
                ChunkLengthInKb = 128
            }));
            InternalTestCreateColumnFamilyCompression(ColumnFamilyCompression.LZ4(new CompressionOptions {
                ChunkLengthInKb = 1024
            }));

            InternalTestCreateColumnFamilyCompression(ColumnFamilyCompression.Snappy(new CompressionOptions {
                ChunkLengthInKb = 32
            }));
            InternalTestCreateColumnFamilyCompression(ColumnFamilyCompression.Snappy(new CompressionOptions {
                ChunkLengthInKb = 1024
            }));

            InternalTestCreateColumnFamilyCompression(ColumnFamilyCompression.Deflate(new CompressionOptions {
                ChunkLengthInKb = 2
            }));
            InternalTestCreateColumnFamilyCompression(ColumnFamilyCompression.Deflate(new CompressionOptions {
                ChunkLengthInKb = 1024
            }));

            InternalTestCreateColumnFamilyCompression(ColumnFamilyCompression.None());
        }
 public void TestCompareColumnFamiliesByCompression()
 {
     Assert.That(
         !comparer.NeedUpdateColumnFamily(
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Deflate(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     },
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Deflate(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     })
         );
     Assert.That(
         comparer.NeedUpdateColumnFamily(
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Deflate(new CompressionOptions {
             ChunkLengthInKb = 3
         })
     },
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Deflate(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     })
         );
     Assert.That(
         comparer.NeedUpdateColumnFamily(
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Snappy(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     },
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Deflate(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     })
         );
     Assert.That(
         comparer.NeedUpdateColumnFamily(
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Snappy(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     },
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.LZ4(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     })
         );
     Assert.That(
         comparer.NeedUpdateColumnFamily(
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.None()
     },
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Deflate(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     })
         );
     Assert.That(
         !comparer.NeedUpdateColumnFamily(
             new ColumnFamily {
         Name = "name", Compression = null
     },
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Deflate(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     })
         );
     Assert.That(
         comparer.NeedUpdateColumnFamily(
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Deflate(new CompressionOptions {
             ChunkLengthInKb = 2
         })
     },
             new ColumnFamily {
         Name = "name", Compression = null
     })
         );
     Assert.That(
         !comparer.NeedUpdateColumnFamily(
             new ColumnFamily {
         Name = "name", Compression = null
     },
             new ColumnFamily {
         Name = "name", Compression = ColumnFamilyCompression.Snappy(null)
     })
         );
 }