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");
		}