예제 #1
0
        public void TestDictionaryConverterTo()
        {
            // ARRANGE
            Dictionary <string, long> dict = new Dictionary <string, long>()
            {
                { "1", 2 }, { "3", 4 }
            };
            DictionaryConverter <string, long> converter = new DictionaryConverter <string, long>();

            // ACT
            DynamoDBEntry entry = converter.ToEntry(dict);

            // ASSERT
            Assert.Equal("{\"1\":2,\"3\":4}", entry.AsString());
        }