Mercurial > pub > ImplabNet
view 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 source
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; #endif namespace Implab.Fx.Test { [TestClass] public class OverlayTest { [TestMethod] public void TestMethod1() { var mainForm = new MainForm(); mainForm.ButtonEvent += (sender, args) => { var overlay = new OverlayForm(); mainForm.OverlayFadeIn(overlay).Then( o => o.ButtonEvent += (s2, args2) => o.CloseFadeOut() ); }; Application.Run(mainForm); } } }