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

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

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

            dynamic NewD = new ImpromptuBuilder <ExpandoObject>();


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

            Assert.AreEqual("Rise", tExpandoNamedTest.LeftArm);
            Assert.AreEqual("Clamp", tExpandoNamedTest.RightArm);
        }
		public void TestBuilder(){
			var New = Builder.New<ExpandoObject>();
			
			  var tExpando =New.Object(
										Test:"test1",
										Test2:"Test 2nd"
									);
		   Assert.AreEqual("test1",tExpando.Test );
		   Assert.AreEqual("Test 2nd",tExpando.Test2);
			
		    dynamic NewD = new ImpromptuBuilder<ExpandoObject>();

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