AWSSDK.UnitTests.LitJsonModificationTests.EmptyListTest C# (CSharp) 메소드

EmptyListTest() 개인적인 메소드

private EmptyListTest ( ) : void
리턴 void
        public void EmptyListTest()
        {
            string emptyListJson =
@"{
    ""emptyList"" : []
}";
            JsonData data = JsonMapper.ToObject(emptyListJson);
            string propertyName = data.PropertyNames.ToArray<string>()[0];

            Assert.AreEqual<string>(propertyName, "emptyList");
            Assert.IsTrue(data[propertyName].IsArray);
            Assert.IsTrue(data[propertyName].Count == 0);
        }