GetTemplateChild_() public method

public GetTemplateChild_ ( string s ) : DependencyObject
s string
return System.Windows.DependencyObject
示例#1
0
文件: ControlTest.cs 项目: ynkbt/moon
        public void GetTemplateChildTest()
        {
            ConcreteControl c = new ConcreteControl();

            Assert.Throws <ArgumentException> (delegate {
                c.GetTemplateChild_(null);
            }, "null");
            Assert.IsNull(c.GetTemplateChild_(String.Empty), "Empty");
        }
示例#2
0
文件: ControlTest.cs 项目: dfr0/moon
		public void GetTemplateChildTest ()
		{
			ConcreteControl c = new ConcreteControl ();
			Assert.Throws<ArgumentException> (delegate {
				c.GetTemplateChild_ (null);
			}, "null");
			Assert.IsNull (c.GetTemplateChild_ (String.Empty), "Empty");
		}