Ejemplo n.º 1
0
        public void TestExpando()
        {
            var New = Builder.New <ExpandoObject>();

            var tExpando = New.Object(
                Test: "test1",
                Test2: "Test 2nd"
                );

            var tExpandoNew = Expando.New(
                Test: "test1",
                Test2: "Test 2nd"
                );


            Assert.AreEqual("test1", tExpandoNew.Test);
            Assert.AreEqual("Test 2nd", tExpandoNew.Test2);

            Assert.AreEqual(tExpando.Test, tExpandoNew.Test);
            Assert.AreEqual(tExpando.Test2, tExpandoNew.Test2);
            Assert.AreEqual(tExpando.GetType(), tExpandoNew.GetType());
        }