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); }
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); }
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); }