Exemple #1
0
        public void ValueNull()
        {
            var expression    = Utils.CreateEmptyExpression();
            var serialization = Utils.GetSerialization(expression);
            var dynamicItem   = new DynamicItemEntity(expression, "PropString", null);
            var result        = dynamicItem.ToString();

            Assert.Equal("PropString", result);
        }
Exemple #2
0
        public void Property()
        {
            var expression    = Utils.CreateEmptyExpression();
            var serialization = Utils.GetSerialization(expression);
            var dynamicItem   = new DynamicItemEntity(expression, "PropInt", 100);
            var result        = dynamicItem.ToString();

            Assert.Equal("PropInt: 100", result);
        }
Exemple #3
0
        public void ShowTypeOnlyName()
        {
            var expression    = Utils.CreateEmptyExpression();
            var serialization = Utils.GetSerialization(expression);

            serialization.ShowType = ShowTypeOptions.TypeName;
            var dynamicItem = new DynamicItemEntity(expression, "PropInt", 100);
            var result      = dynamicItem.ToString();

            Assert.Equal("Int32.PropInt: 100", result);
        }