public void Restore_GreedyInsertFirst() { var str1 = "q4DU8sbeD4JdhFA4hWShCv3bbtD7djX5SaNnQUHJHdCEJs6X2LJipbEEr7bZZbzcUrpuKpRDKNz92x5P"; var str2 = "3GKLWNDdCxip8kda2r2MUT45RrHUiESQhmhUZtMcpBGcSwJVS9uq4DWBAQk2zPUJCJabaeWuP5mxyPBz"; var results = DiffUtil.Diff(str1, str2); results = DiffUtil.Order(results, DiffOrderType.GreedyInsertFirst); var src = new string(DiffUtil.CreateSrc(results).ToArray()); var dst = new string(DiffUtil.CreateDst(results).ToArray()); Assert.AreEqual(dst, str2); Assert.AreEqual(src, str1); }