OnMouseEnter_() public method

public OnMouseEnter_ ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void
コード例 #1
0
ファイル: ControlTest.cs プロジェクト: ynkbt/moon
        public void OnNull()
        {
            ConcreteControl c = new ConcreteControl();

            Assert.Throws <ArgumentNullException> (delegate {
                c.OnGotFocus_(null);
            }, "OnGotFocus");
            Assert.Throws <ArgumentNullException> (delegate {
                c.OnLostFocus_(null);
            }, "LostFocus");
            Assert.Throws <ArgumentNullException> (delegate {
                c.OnKeyDown_(null);
            }, "OnKeyDown");
            Assert.Throws <ArgumentNullException> (delegate {
                c.OnKeyUp_(null);
            }, "OnKeyU");
            Assert.Throws <ArgumentNullException> (delegate {
                c.OnMouseEnter_(null);
            }, "OnMouseEnter");
            Assert.Throws <ArgumentNullException> (delegate {
                c.OnMouseLeave_(null);
            }, "OnMouseLeave");
            Assert.Throws <ArgumentNullException> (delegate {
                c.OnMouseMove_(null);
            }, "OnMouseMove");
            Assert.Throws <ArgumentNullException> (delegate {
                c.OnMouseLeftButtonDown_(null);
            }, "OnMouseLeftButtonDown");
            Assert.Throws <ArgumentNullException> (delegate {
                c.OnMouseLeftButtonUp_(null);
            }, "OnMouseLeftButtonUp");
        }
コード例 #2
0
ファイル: ControlTest.cs プロジェクト: dfr0/moon
		public void OnNull ()
		{
			ConcreteControl c = new ConcreteControl ();
			Assert.Throws<ArgumentNullException> (delegate {
				c.OnGotFocus_ (null);
			}, "OnGotFocus");
			Assert.Throws<ArgumentNullException> (delegate {
				c.OnLostFocus_ (null);
			}, "LostFocus");
			Assert.Throws<ArgumentNullException> (delegate {
				c.OnKeyDown_ (null);
			}, "OnKeyDown");
			Assert.Throws<ArgumentNullException> (delegate {
				c.OnKeyUp_ (null);
			}, "OnKeyU");
			Assert.Throws<ArgumentNullException> (delegate {
				c.OnMouseEnter_ (null);
			}, "OnMouseEnter");
			Assert.Throws<ArgumentNullException> (delegate {
				c.OnMouseLeave_ (null);
			}, "OnMouseLeave");
			Assert.Throws<ArgumentNullException> (delegate {
				c.OnMouseMove_ (null);
			}, "OnMouseMove");
			Assert.Throws<ArgumentNullException> (delegate {
				c.OnMouseLeftButtonDown_ (null);
			}, "OnMouseLeftButtonDown");
			Assert.Throws<ArgumentNullException> (delegate {
				c.OnMouseLeftButtonUp_ (null);
			}, "OnMouseLeftButtonUp");
		}