public void ConvertTest() { int N = 100; List <ulong> testList = CreateList(N); IndexSequence test = new IndexSequence.Builder().AddRange(testList); Assert.True(test.SequenceEqual(testList)); }
public void LoadSaveTest() { int N = 10; List <ulong> testList = CreateList(N); IndexSequence test = new IndexSequence.Builder().AddRange(testList); BinaryWriter wr = new BinaryWriter(new MemoryStream()); test.Write(wr); wr.Flush(); wr.BaseStream.Seek(0, SeekOrigin.Begin); BinaryReader read = new BinaryReader(wr.BaseStream); IndexSequence test1 = new IndexSequence(); test1.Read(read); Assert.True(test.SequenceEqual(test1)); }