public void TestDifferentLengthStrings()
        {
            JsonStringDictionary jsonStringDictionary = new JsonStringDictionary(capacity: 256);

            for (int replicationCount = 0; replicationCount < 128; replicationCount++)
            {
                JsonStringDictionaryTests.AddAndValidate(
                    jsonStringDictionary,
                    expectedString: new string('a', replicationCount),
                    expectedIndex: replicationCount);
            }
        }
        public void TestBasicCase()
        {
            JsonStringDictionary jsonStringDictionary = new JsonStringDictionary(capacity: 100);

            // First new string -> index 0
            JsonStringDictionaryTests.AddAndValidate(jsonStringDictionary, expectedString: "str1", expectedIndex: 0);

            // Second new string -> index 1
            JsonStringDictionaryTests.AddAndValidate(jsonStringDictionary, expectedString: "str2", expectedIndex: 1);

            // Re adding second string -> also index 1
            JsonStringDictionaryTests.AddAndValidate(jsonStringDictionary, expectedString: "str2", expectedIndex: 1);

            // Adding third new string -> index 2
            JsonStringDictionaryTests.AddAndValidate(jsonStringDictionary, expectedString: "str3", expectedIndex: 2);
        }