Example #1
0
        public void ConsistentShuffle_shuffles_identical_to_the_nodejs_lib()
        {
            var shuffleResultsFromNodeLib = new Dictionary <string, string>()
            {
                { "564123", "123456" },
                { "sinypushttimi", "thisismyinput" },
                { "sftoidoeuoousdhwrn", "tddsureisfunwoohoo" }
            };

            foreach (var kvp in shuffleResultsFromNodeLib)
            {
                Assert.AreEqual(kvp.Key, Hashids.ConsistentShuffle(input: kvp.Value, salt: salt));
            }
        }