public void Test_To_JSON() { Dictionary <string, int> tokens = new Dictionary <string, int> { { "hello", 3 }, { "chicken", 1 } }; TokenCollection col = new TokenCollection(tokens); string str = TokenCollection.Serialize(col); Assert.AreEqual(_JSON, str); }