Author: toshok
Date: 2007-12-02 14:50:20 -0500 (Sun, 02 Dec 2007)
New Revision: 90529

Added:
   trunk/olive/class/PresentationCore/Test/System.Windows/
   trunk/olive/class/PresentationCore/Test/System.Windows/ContentElementTest.cs
   trunk/olive/class/PresentationCore/Test/System.Windows/DragDropTest.cs
   trunk/olive/class/PresentationCore/Test/System.Windows/UIElementTest.cs
Modified:
   trunk/olive/class/PresentationCore/PresentationCore_test.dll.sources
Log:
add some tests for UIElement and ContentElement's routed events, and add tests 
for DragDrop

Modified: trunk/olive/class/PresentationCore/PresentationCore_test.dll.sources
===================================================================
--- trunk/olive/class/PresentationCore/PresentationCore_test.dll.sources        
2007-12-02 19:49:45 UTC (rev 90528)
+++ trunk/olive/class/PresentationCore/PresentationCore_test.dll.sources        
2007-12-02 19:50:20 UTC (rev 90529)
@@ -1,2 +1,5 @@
+System.Windows/ContentElementTest.cs
+System.Windows/DragDropTest.cs
+System.Windows/UIElementTest.cs
 System.Windows.Input/ApplicationCommands.cs
 System.Windows.Input/InputEventArgs.cs
\ No newline at end of file

Added: 
trunk/olive/class/PresentationCore/Test/System.Windows/ContentElementTest.cs
===================================================================
--- 
trunk/olive/class/PresentationCore/Test/System.Windows/ContentElementTest.cs    
    2007-12-02 19:49:45 UTC (rev 90528)
+++ 
trunk/olive/class/PresentationCore/Test/System.Windows/ContentElementTest.cs    
    2007-12-02 19:50:20 UTC (rev 90529)
@@ -0,0 +1,112 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Chris Toshok ([EMAIL PROTECTED])
+//
+
+using System;
+using System.Windows;
+using System.Windows.Input;
+using System.Windows.Media;
+using NUnit.Framework;
+
+namespace MonoTests.System.Windows {
+
+       [TestFixture]
+       public class ContentElementTest {
+               [Test]
+               public void TestRoutedEvents ()
+               {
+                       Assert.AreSame (ContentElement.DragEnterEvent, 
DragDrop.DragEnterEvent);
+                       Assert.AreSame (ContentElement.DragLeaveEvent, 
DragDrop.DragLeaveEvent);
+                       Assert.AreSame (ContentElement.DragOverEvent, 
DragDrop.DragOverEvent);
+                       Assert.AreSame (ContentElement.DropEvent, 
DragDrop.DropEvent);
+                       Assert.AreSame (ContentElement.GiveFeedbackEvent, 
DragDrop.GiveFeedbackEvent);
+                       Assert.AreSame (ContentElement.GotFocusEvent, 
FocusManager.GotFocusEvent);
+                       Assert.AreSame (ContentElement.GotKeyboardFocusEvent, 
Keyboard.GotKeyboardFocusEvent);
+                       Assert.AreSame (ContentElement.GotMouseCaptureEvent, 
Mouse.GotMouseCaptureEvent);
+                       //                      Assert.AreSame 
(ContentElement.GotStylusCaptureEvent, Stylus.GotStylusCaptureEvent);
+                       Assert.AreSame (ContentElement.KeyDownEvent, 
Keyboard.KeyDownEvent);
+                       Assert.AreSame (ContentElement.KeyUpEvent, 
Keyboard.KeyUpEvent);
+                       Assert.AreSame (ContentElement.LostFocusEvent, 
FocusManager.LostFocusEvent);
+                       Assert.AreSame (ContentElement.LostKeyboardFocusEvent, 
Keyboard.LostKeyboardFocusEvent);
+                       Assert.AreSame (ContentElement.LostMouseCaptureEvent, 
Mouse.LostMouseCaptureEvent);
+                       //                      Assert.AreSame 
(ContentElement.LostStylusCaptureEvent, Stylus.LostStylusCaptureEvent);
+                       Assert.AreSame (ContentElement.MouseDownEvent, 
Mouse.MouseDownEvent);
+                       Assert.AreSame (ContentElement.MouseEnterEvent, 
Mouse.MouseEnterEvent);
+                       Assert.AreSame (ContentElement.MouseLeaveEvent, 
Mouse.MouseLeaveEvent);
+                       Assert.AreSame 
(ContentElement.MouseLeftButtonDownEvent, UIElement.MouseLeftButtonDownEvent);
+                       Assert.AreSame (ContentElement.MouseLeftButtonUpEvent, 
UIElement.MouseLeftButtonUpEvent);
+                       Assert.AreSame (ContentElement.MouseMoveEvent, 
Mouse.MouseMoveEvent);
+                       Assert.AreSame 
(ContentElement.MouseRightButtonDownEvent, UIElement.MouseRightButtonDownEvent);
+                       Assert.AreSame (ContentElement.MouseRightButtonUpEvent, 
UIElement.MouseRightButtonUpEvent);
+                       Assert.AreSame (ContentElement.MouseUpEvent, 
Mouse.MouseUpEvent);
+                       Assert.AreSame (ContentElement.MouseWheelEvent, 
Mouse.MouseWheelEvent);
+
+                       Assert.AreSame (ContentElement.QueryContinueDragEvent, 
DragDrop.QueryContinueDragEvent);
+                       Assert.AreSame (ContentElement.QueryCursorEvent, 
Mouse.QueryCursorEvent);
+//                     Assert.AreSame (ContentElement.StylusButtonDownEvent, 
Stylus.StylusButtonDownEvent);
+//                     Assert.AreSame (ContentElement.StylusButtonUpEvent, 
Stylus.StylusButtonUpEvent);
+//                     Assert.AreSame (ContentElement.StylusDownEvent, 
Stylus.StylusDownEvent);
+//                     Assert.AreSame (ContentElement.StylusEnterEvent, 
Stylus.StylusEnterEvent);
+//                     Assert.AreSame (ContentElement.StylusInAirMoveEvent, 
Stylus.StylusInAirMoveEvent);
+//                     Assert.AreSame (ContentElement.StylusInRangeEvent, 
Stylus.StylusInRangeEvent);
+//                     Assert.AreSame (ContentElement.StylusLeaveEvent, 
Stylus.StylusLeaveEvent);
+//                     Assert.AreSame (ContentElement.StylusMoveEvent, 
Stylus.StylusMoveEvent);
+//                     Assert.AreSame (ContentElement.StylusOutOfRangeEvent, 
Stylus.StylusOutOfRangeEvent);
+//                     Assert.AreSame 
(ContentElement.StylusSystemGestureEvent, Stylus.StylusSystemGestureEvent);
+//                     Assert.AreSame (ContentElement.StylusUpEvent, 
Stylus.StylusUpEvent);
+                       Assert.AreSame (ContentElement.TextInputEvent, 
TextCompositionManager.TextInputEvent);
+
+                       Assert.AreSame (ContentElement.PreviewDragEnterEvent, 
DragDrop.PreviewDragEnterEvent);
+                       Assert.AreSame (ContentElement.PreviewDragLeaveEvent, 
DragDrop.PreviewDragLeaveEvent);
+                       Assert.AreSame (ContentElement.PreviewDragOverEvent, 
DragDrop.PreviewDragOverEvent);
+                       Assert.AreSame (ContentElement.PreviewDropEvent, 
DragDrop.PreviewDropEvent);
+                       Assert.AreSame 
(ContentElement.PreviewGiveFeedbackEvent, DragDrop.PreviewGiveFeedbackEvent);
+                       Assert.AreSame 
(ContentElement.PreviewGotKeyboardFocusEvent, 
Keyboard.PreviewGotKeyboardFocusEvent);
+                       Assert.AreSame (ContentElement.PreviewKeyDownEvent, 
Keyboard.PreviewKeyDownEvent);
+                       Assert.AreSame (ContentElement.PreviewKeyUpEvent, 
Keyboard.PreviewKeyUpEvent);
+                       Assert.AreSame 
(ContentElement.PreviewLostKeyboardFocusEvent, 
Keyboard.PreviewLostKeyboardFocusEvent);
+                       Assert.AreSame (ContentElement.PreviewMouseDownEvent, 
Mouse.PreviewMouseDownEvent);
+                       Assert.AreSame 
(ContentElement.PreviewMouseLeftButtonDownEvent, 
UIElement.PreviewMouseLeftButtonDownEvent);
+                       Assert.AreSame 
(ContentElement.PreviewMouseLeftButtonUpEvent, 
UIElement.PreviewMouseLeftButtonUpEvent);
+                       Assert.AreSame (ContentElement.PreviewMouseMoveEvent, 
Mouse.PreviewMouseMoveEvent);
+                       Assert.AreSame 
(ContentElement.PreviewMouseRightButtonDownEvent, 
UIElement.PreviewMouseRightButtonDownEvent);
+                       Assert.AreSame 
(ContentElement.PreviewMouseRightButtonUpEvent, 
UIElement.PreviewMouseRightButtonUpEvent);
+                       Assert.AreSame (ContentElement.PreviewMouseUpEvent, 
Mouse.PreviewMouseUpEvent);
+                       Assert.AreSame (ContentElement.PreviewMouseWheelEvent, 
Mouse.PreviewMouseWheelEvent);
+                       Assert.AreSame 
(ContentElement.PreviewQueryContinueDragEvent, 
DragDrop.PreviewQueryContinueDragEvent);
+//                     Assert.AreSame 
(ContentElement.PreviewStylusButtonDownEvent, 
Stylus.PreviewStylusButtonDownEvent);
+//                     Assert.AreSame 
(ContentElement.PreviewStylusButtonUpEvent, Stylus.PreviewStylusButtonUpEvent);
+//                     Assert.AreSame (ContentElement.PreviewStylusDownEvent, 
Stylus.PreviewStylusDownEvent);
+//                     Assert.AreSame (ContentElement.PreviewStylusEnterEvent, 
Stylus.PreviewStylusEnterEvent);
+//                     Assert.AreSame 
(ContentElement.PreviewStylusInAirMoveEvent, 
Stylus.PreviewStylusInAirMoveEvent);
+//                     Assert.AreSame 
(ContentElement.PreviewStylusInRangeEvent, Stylus.PreviewStylusInRangeEvent);
+//                     Assert.AreSame (ContentElement.PreviewStylusLeaveEvent, 
Stylus.PreviewStylusLeaveEvent);
+//                     Assert.AreSame (ContentElement.PreviewStylusMoveEvent, 
Stylus.PreviewStylusMoveEvent);
+//                     Assert.AreSame 
(ContentElement.PreviewStylusOutOfRangeEvent, 
Stylus.PreviewStylusOutOfRangeEvent);
+//                     Assert.AreSame 
(ContentElement.PreviewStylusSystemGestureEvent, 
Stylus.PreviewStylusSystemGestureEvent);
+//                     Assert.AreSame (ContentElement.PreviewStylusUpEvent, 
Stylus.PreviewStylusUpEvent);
+                       Assert.AreSame (ContentElement.PreviewTextInputEvent, 
TextCompositionManager.PreviewTextInputEvent);
+               }
+       }
+}

Added: trunk/olive/class/PresentationCore/Test/System.Windows/DragDropTest.cs
===================================================================
--- trunk/olive/class/PresentationCore/Test/System.Windows/DragDropTest.cs      
2007-12-02 19:49:45 UTC (rev 90528)
+++ trunk/olive/class/PresentationCore/Test/System.Windows/DragDropTest.cs      
2007-12-02 19:50:20 UTC (rev 90529)
@@ -0,0 +1,75 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Chris Toshok ([EMAIL PROTECTED])
+//
+
+using System;
+using System.Windows;
+using NUnit.Framework;
+
+namespace MonoTests.System.Windows {
+
+       [TestFixture]
+       public class DragDropTest {
+
+               void _checkEvent (RoutedEvent ev,
+                                 string expected_name, Type 
expected_handler_type,
+                                 Type expected_owner_type, RoutingStrategy 
expected_routing_strategy)
+               {
+                       Assert.AreEqual (expected_handler_type, ev.HandlerType);
+                       Assert.AreEqual (expected_name, ev.Name);
+                       Assert.AreEqual (expected_owner_type, ev.OwnerType);
+                       Assert.AreEqual (expected_routing_strategy, 
ev.RoutingStrategy);
+               }
+
+               [Test]
+               public void TestRoutedEventDefaults ()
+               {
+                       _checkEvent (DragDrop.DragEnterEvent, "DragEnter",
+                                    typeof (DragEventHandler), typeof 
(DragDrop), RoutingStrategy.Bubble);
+                       _checkEvent (DragDrop.DragLeaveEvent, "DragLeave",
+                                    typeof (DragEventHandler), typeof 
(DragDrop), RoutingStrategy.Bubble);
+                       _checkEvent (DragDrop.DragOverEvent, "DragOver",
+                                    typeof (DragEventHandler), typeof 
(DragDrop), RoutingStrategy.Bubble);
+                       _checkEvent (DragDrop.DropEvent, "Drop",
+                                    typeof (DragEventHandler), typeof 
(DragDrop), RoutingStrategy.Bubble);
+                       _checkEvent (DragDrop.GiveFeedbackEvent, "GiveFeedback",
+                                    typeof (GiveFeedbackEventHandler), typeof 
(DragDrop), RoutingStrategy.Bubble);
+                       _checkEvent (DragDrop.QueryContinueDragEvent, 
"QueryContinueDrag",
+                                    typeof (QueryContinueDragEventHandler), 
typeof (DragDrop), RoutingStrategy.Bubble);
+
+                       _checkEvent (DragDrop.PreviewDragEnterEvent, 
"PreviewDragEnter",
+                                    typeof (DragEventHandler), typeof 
(DragDrop), RoutingStrategy.Tunnel);
+                       _checkEvent (DragDrop.PreviewDragLeaveEvent, 
"PreviewDragLeave",
+                                    typeof (DragEventHandler), typeof 
(DragDrop), RoutingStrategy.Tunnel);
+                       _checkEvent (DragDrop.PreviewDragOverEvent, 
"PreviewDragOver",
+                                    typeof (DragEventHandler), typeof 
(DragDrop), RoutingStrategy.Tunnel);
+                       _checkEvent (DragDrop.PreviewDropEvent, "PreviewDrop",
+                                    typeof (DragEventHandler), typeof 
(DragDrop), RoutingStrategy.Tunnel);
+                       _checkEvent (DragDrop.PreviewGiveFeedbackEvent, 
"PreviewGiveFeedback",
+                                    typeof (GiveFeedbackEventHandler), typeof 
(DragDrop), RoutingStrategy.Tunnel);
+                       _checkEvent (DragDrop.PreviewQueryContinueDragEvent, 
"PreviewQueryContinueDrag",
+                                    typeof (QueryContinueDragEventHandler), 
typeof (DragDrop), RoutingStrategy.Tunnel);
+               }
+       }
+}

Added: trunk/olive/class/PresentationCore/Test/System.Windows/UIElementTest.cs
===================================================================
--- trunk/olive/class/PresentationCore/Test/System.Windows/UIElementTest.cs     
2007-12-02 19:49:45 UTC (rev 90528)
+++ trunk/olive/class/PresentationCore/Test/System.Windows/UIElementTest.cs     
2007-12-02 19:50:20 UTC (rev 90529)
@@ -0,0 +1,139 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Chris Toshok ([EMAIL PROTECTED])
+//
+
+using System;
+using System.Windows;
+using System.Windows.Input;
+using System.Windows.Media;
+using NUnit.Framework;
+
+namespace MonoTests.System.Windows {
+
+       [TestFixture]
+       public class UIElementTest {
+
+               void _checkEvent (RoutedEvent ev,
+                                 string expected_name, Type 
expected_handler_type,
+                                 Type expected_owner_type, RoutingStrategy 
expected_routing_strategy)
+               {
+                       Assert.AreEqual (expected_handler_type, ev.HandlerType);
+                       Assert.AreEqual (expected_name, ev.Name);
+                       Assert.AreEqual (expected_owner_type, ev.OwnerType);
+                       Assert.AreEqual (expected_routing_strategy, 
ev.RoutingStrategy);
+               }
+
+               [Test]
+               public void TestRoutedEvents ()
+               {
+                       Assert.AreSame (UIElement.DragEnterEvent, 
DragDrop.DragEnterEvent);
+                       Assert.AreSame (UIElement.DragLeaveEvent, 
DragDrop.DragLeaveEvent);
+                       Assert.AreSame (UIElement.DragOverEvent, 
DragDrop.DragOverEvent);
+                       Assert.AreSame (UIElement.DropEvent, 
DragDrop.DropEvent);
+                       Assert.AreSame (UIElement.GiveFeedbackEvent, 
DragDrop.GiveFeedbackEvent);
+                       Assert.AreSame (UIElement.GotFocusEvent, 
FocusManager.GotFocusEvent);
+                       Assert.AreSame (UIElement.GotKeyboardFocusEvent, 
Keyboard.GotKeyboardFocusEvent);
+                       Assert.AreSame (UIElement.GotMouseCaptureEvent, 
Mouse.GotMouseCaptureEvent);
+                       //                      Assert.AreSame 
(UIElement.GotStylusCaptureEvent, Stylus.GotStylusCaptureEvent);
+                       Assert.AreSame (UIElement.KeyDownEvent, 
Keyboard.KeyDownEvent);
+                       Assert.AreSame (UIElement.KeyUpEvent, 
Keyboard.KeyUpEvent);
+                       Assert.AreSame (UIElement.LostFocusEvent, 
FocusManager.LostFocusEvent);
+                       Assert.AreSame (UIElement.LostKeyboardFocusEvent, 
Keyboard.LostKeyboardFocusEvent);
+                       Assert.AreSame (UIElement.LostMouseCaptureEvent, 
Mouse.LostMouseCaptureEvent);
+                       //                      Assert.AreSame 
(UIElement.LostStylusCaptureEvent, Stylus.LostStylusCaptureEvent);
+                       Assert.AreSame (UIElement.MouseDownEvent, 
Mouse.MouseDownEvent);
+                       Assert.AreSame (UIElement.MouseEnterEvent, 
Mouse.MouseEnterEvent);
+                       Assert.AreSame (UIElement.MouseLeaveEvent, 
Mouse.MouseLeaveEvent);
+
+                       _checkEvent (UIElement.MouseLeftButtonDownEvent, 
"MouseLeftButtonDown",
+                                    typeof (MouseButtonEventHandler), typeof 
(UIElement), RoutingStrategy.Direct);
+                       _checkEvent (UIElement.MouseLeftButtonUpEvent, 
"MouseLeftButtonUp",
+                                    typeof (MouseButtonEventHandler), typeof 
(UIElement), RoutingStrategy.Direct);
+
+                       Assert.AreSame (UIElement.MouseMoveEvent, 
Mouse.MouseMoveEvent);
+
+                       _checkEvent (UIElement.MouseRightButtonDownEvent, 
"MouseRightButtonDown",
+                                    typeof (MouseButtonEventHandler), typeof 
(UIElement), RoutingStrategy.Direct);
+                       _checkEvent (UIElement.MouseRightButtonUpEvent, 
"MouseRightButtonUp",
+                                    typeof (MouseButtonEventHandler), typeof 
(UIElement), RoutingStrategy.Direct);
+
+                       Assert.AreSame (UIElement.MouseUpEvent, 
Mouse.MouseUpEvent);
+                       Assert.AreSame (UIElement.MouseWheelEvent, 
Mouse.MouseWheelEvent);
+
+                       Assert.AreSame (UIElement.QueryContinueDragEvent, 
DragDrop.QueryContinueDragEvent);
+                       Assert.AreSame (UIElement.QueryCursorEvent, 
Mouse.QueryCursorEvent);
+//                     Assert.AreSame (UIElement.StylusButtonDownEvent, 
Stylus.StylusButtonDownEvent);
+//                     Assert.AreSame (UIElement.StylusButtonUpEvent, 
Stylus.StylusButtonUpEvent);
+//                     Assert.AreSame (UIElement.StylusDownEvent, 
Stylus.StylusDownEvent);
+//                     Assert.AreSame (UIElement.StylusEnterEvent, 
Stylus.StylusEnterEvent);
+//                     Assert.AreSame (UIElement.StylusInAirMoveEvent, 
Stylus.StylusInAirMoveEvent);
+//                     Assert.AreSame (UIElement.StylusInRangeEvent, 
Stylus.StylusInRangeEvent);
+//                     Assert.AreSame (UIElement.StylusLeaveEvent, 
Stylus.StylusLeaveEvent);
+//                     Assert.AreSame (UIElement.StylusMoveEvent, 
Stylus.StylusMoveEvent);
+//                     Assert.AreSame (UIElement.StylusOutOfRangeEvent, 
Stylus.StylusOutOfRangeEvent);
+//                     Assert.AreSame (UIElement.StylusSystemGestureEvent, 
Stylus.StylusSystemGestureEvent);
+//                     Assert.AreSame (UIElement.StylusUpEvent, 
Stylus.StylusUpEvent);
+                       Assert.AreSame (UIElement.TextInputEvent, 
TextCompositionManager.TextInputEvent);
+
+                       Assert.AreSame (UIElement.PreviewDragEnterEvent, 
DragDrop.PreviewDragEnterEvent);
+                       Assert.AreSame (UIElement.PreviewDragLeaveEvent, 
DragDrop.PreviewDragLeaveEvent);
+                       Assert.AreSame (UIElement.PreviewDragOverEvent, 
DragDrop.PreviewDragOverEvent);
+                       Assert.AreSame (UIElement.PreviewDropEvent, 
DragDrop.PreviewDropEvent);
+                       Assert.AreSame (UIElement.PreviewGiveFeedbackEvent, 
DragDrop.PreviewGiveFeedbackEvent);
+                       Assert.AreSame (UIElement.PreviewGotKeyboardFocusEvent, 
Keyboard.PreviewGotKeyboardFocusEvent);
+                       Assert.AreSame (UIElement.PreviewKeyDownEvent, 
Keyboard.PreviewKeyDownEvent);
+                       Assert.AreSame (UIElement.PreviewKeyUpEvent, 
Keyboard.PreviewKeyUpEvent);
+                       Assert.AreSame 
(UIElement.PreviewLostKeyboardFocusEvent, 
Keyboard.PreviewLostKeyboardFocusEvent);
+                       Assert.AreSame (UIElement.PreviewMouseDownEvent, 
Mouse.PreviewMouseDownEvent);
+
+                       _checkEvent (UIElement.PreviewMouseLeftButtonDownEvent, 
"PreviewMouseLeftButtonDown",
+                                    typeof (MouseButtonEventHandler), typeof 
(UIElement), RoutingStrategy.Direct);
+                       _checkEvent (UIElement.PreviewMouseLeftButtonUpEvent, 
"PreviewMouseLeftButtonUp",
+                                    typeof (MouseButtonEventHandler), typeof 
(UIElement), RoutingStrategy.Direct);
+
+                       Assert.AreSame (UIElement.PreviewMouseMoveEvent, 
Mouse.PreviewMouseMoveEvent);
+
+                       _checkEvent 
(UIElement.PreviewMouseRightButtonDownEvent, "PreviewMouseRightButtonDown",
+                                    typeof (MouseButtonEventHandler), typeof 
(UIElement), RoutingStrategy.Direct);
+                       _checkEvent (UIElement.PreviewMouseRightButtonUpEvent, 
"PreviewMouseRightButtonUp",
+                                    typeof (MouseButtonEventHandler), typeof 
(UIElement), RoutingStrategy.Direct);
+
+                       Assert.AreSame (UIElement.PreviewMouseUpEvent, 
Mouse.PreviewMouseUpEvent);
+                       Assert.AreSame (UIElement.PreviewMouseWheelEvent, 
Mouse.PreviewMouseWheelEvent);
+                       Assert.AreSame 
(UIElement.PreviewQueryContinueDragEvent, 
DragDrop.PreviewQueryContinueDragEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusButtonDownEvent, 
Stylus.PreviewStylusButtonDownEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusButtonUpEvent, 
Stylus.PreviewStylusButtonUpEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusDownEvent, 
Stylus.PreviewStylusDownEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusEnterEvent, 
Stylus.PreviewStylusEnterEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusInAirMoveEvent, 
Stylus.PreviewStylusInAirMoveEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusInRangeEvent, 
Stylus.PreviewStylusInRangeEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusLeaveEvent, 
Stylus.PreviewStylusLeaveEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusMoveEvent, 
Stylus.PreviewStylusMoveEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusOutOfRangeEvent, 
Stylus.PreviewStylusOutOfRangeEvent);
+//                     Assert.AreSame 
(UIElement.PreviewStylusSystemGestureEvent, 
Stylus.PreviewStylusSystemGestureEvent);
+//                     Assert.AreSame (UIElement.PreviewStylusUpEvent, 
Stylus.PreviewStylusUpEvent);
+                       Assert.AreSame (UIElement.PreviewTextInputEvent, 
TextCompositionManager.PreviewTextInputEvent);
+               }
+       }
+}

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to