Пример #1
0
		public void ControlParameter_EvaluateComplex ()
		{
			ControlParameterPoker ctrlParam = new ControlParameterPoker ("Test", "TestControl1", "Values['one']");
			Page page = new Page ();
			
			OrderedDictionary dict = new OrderedDictionary ();
			dict.Add ("one", "1");
			
			DataKey values = new DataKey (dict);
			TestControl test = new TestControl (values);
			test.ID = "TestControl1";
			page.Controls.Add (test);
			string value = ctrlParam.DoEvaluate (HttpContext.Current, test) as string;
			Assert.AreEqual ("1", value, "#1");
		}