diff Implab.Fx.Test/OverlayTest.cs @ 77:91362ffbecf8 v2

ported tests to mono
author cin
date Thu, 11 Sep 2014 10:56:14 +0400
parents f2559580b481
children 037df317f126
line wrap: on
line diff
--- a/Implab.Fx.Test/OverlayTest.cs	Wed Sep 10 17:53:05 2014 +0400
+++ b/Implab.Fx.Test/OverlayTest.cs	Thu Sep 11 10:56:14 2014 +0400
@@ -1,12 +1,18 @@
-using System;
-using System.Text;
-using System.Collections.Generic;
-using System.Linq;
+using System.Windows.Forms;
+using Implab.Fx.Test.Sample;
+using Implab.Fx;
+
+#if MONO
+
+using NUnit.Framework;
+using TestClassAttribute = NUnit.Framework.TestFixtureAttribute;
+using TestMethod = NUnit.Framework.TestAttribute;
+
+#else
+
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System.Windows.Forms;
-using Implab.Fx.Test.Sample;
-using System.Drawing;
-using Implab.Fx;
+
+#endif
 
 namespace Implab.Fx.Test
 {
@@ -22,10 +28,7 @@
             {
                 var overlay = new OverlayForm();
                 mainForm.OverlayFadeIn(overlay).Then(
-                    o => o.ButtonEvent += (s2, args2) =>
-                    {
-                        o.CloseFadeOut();
-                    }
+                    o => o.ButtonEvent += (s2, args2) => o.CloseFadeOut()
                 );
             };