Esempio n. 1
0
        public void ToFullExpando_ShouldSetComplexProperties()
        {
            var     source = new ExpandoSource();
            dynamic target = source.ToFullExpando();
            var     dict   = (IDictionary <string, object>)target;

            dict["name"].ShouldEqual(source.Name);
            dict["object"].ShouldEqual(source.Object);
            dict["expandosourceid"].ShouldEqual(source.ExpandoSourceId);
            dict["double"].ShouldEqual(source.Double);
            dict["child"].ShouldEqual(source.Child);
            dict["guid"].ShouldEqual(source.Guid);
            dict["nullableint"].ShouldEqual(source.NullableInt);
            dict["nullobject"].ShouldBeNull();
        }