public void ToEncodedArray_should_encode_values_correctly(string[] keys, string[] values, string expected)
        {
            var items = new List <KeyValuePair <string, string> >();

            for (var i = 0; i < keys.Length; i++)
            {
                items.Add(new KeyValuePair <string, string>(keys[i], values[i]));
            }
            var subject = new EncodingList(items, "-", ",", false);
            var result  = subject.Encode();

            result.HashedValue.Should().Be(expected);
        }
        public void ToEncodedArray_should_return_correct_keys(string[] keys, string[] values)
        {
            var items = new List <KeyValuePair <string, string> >();

            for (var i = 0; i < keys.Length; i++)
            {
                items.Add(new KeyValuePair <string, string>(keys[i], values[i]));
            }
            var subject = new EncodingList(items, "-", ",", false);
            var result  = subject.Encode();

            result.Keys.Count().Should().Be(keys.Length);
            result.Keys.Should().ContainInOrder(keys);
        }