##// END OF EJS Templates
shared locks + tests
shared locks + tests

File last commit:

r77:91362ffbecf8 v2
r136:e9e7940c7d98 v2
Show More
OverlayTest.cs
38 lines | 881 B | text/x-csharp | CSharpLexer
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);
}
}
}