public void WriteRead_First1000()
        {
            for (ulong input = 0; input < 1000; input++)
            {
                var encoded = ThompsonAlphaUnsignedWriter.WriteOneDefault(input);
                var output  = ThompsonAlphaUnsignedReader.ReadOneDefault(encoded);

                Assert.AreEqual(input, output);
            }
        }
Пример #2
0
 private ulong Read(string input)
 {
     return(ThompsonAlphaUnsignedReader.ReadOneDefault(BitOperation.ParseToBytes(input)));
 }