示例#1
0
        public void op_GetDynamicMemberNames()
        {
            dynamic obj = new DynamicJson();
            obj.Example = string.Empty;

            foreach (var actual in ((DynamicJson)obj).GetDynamicMemberNames())
            {
                Assert.Equal("Example", actual);
            }
        }
示例#2
0
        public void example()
        {
            const string expected = "example";

            dynamic obj = new DynamicJson();
            obj.Example = expected;

            var actual = obj.Example;

            Assert.Equal(expected, actual);
        }
示例#3
0
        public void example_whenNotSet()
        {
            dynamic obj = new DynamicJson();

            Assert.Null(obj.Example);
        }