Ejemplo n.º 1
0
        public void TestExpando2()
        {
            dynamic NewD = new DynamicObjects.Builder<ExpandoObject>();

            var tExpandoNamedTest = NewD.Robot(
                LeftArm: "Rise",
                RightArm: "Clamp"
                );

            dynamic NewE = new Expando();

            var tExpandoNamedTestShortcut = NewE.Robot(
               LeftArm: "Rise",
               RightArm: "Clamp"
               );

            Assert.AreEqual("Rise", tExpandoNamedTestShortcut.LeftArm);
            Assert.AreEqual("Clamp", tExpandoNamedTestShortcut.RightArm);

            Assert.AreEqual(tExpandoNamedTest.LeftArm, tExpandoNamedTestShortcut.LeftArm);
            Assert.AreEqual(tExpandoNamedTest.RightArm, tExpandoNamedTestShortcut.RightArm);
            Assert.AreEqual(tExpandoNamedTest.GetType(), tExpandoNamedTestShortcut.GetType());
        }
Ejemplo n.º 2
0
        public void TestExpando2()
        {
            dynamic NewD = new DynamicObjects.Builder <ExpandoObject>();

            var tExpandoNamedTest = NewD.Robot(
                LeftArm: "Rise",
                RightArm: "Clamp"
                );

            dynamic NewE = new Expando();

            var tExpandoNamedTestShortcut = NewE.Robot(
                LeftArm: "Rise",
                RightArm: "Clamp"
                );

            Assert.AreEqual("Rise", tExpandoNamedTestShortcut.LeftArm);
            Assert.AreEqual("Clamp", tExpandoNamedTestShortcut.RightArm);

            Assert.AreEqual(tExpandoNamedTest.LeftArm, tExpandoNamedTestShortcut.LeftArm);
            Assert.AreEqual(tExpandoNamedTest.RightArm, tExpandoNamedTestShortcut.RightArm);
            Assert.AreEqual(tExpandoNamedTest.GetType(), tExpandoNamedTestShortcut.GetType());
        }