/Scenes/Tests/ToolTipTests.cs
C# | 45 lines | 27 code | 5 blank | 13 comment | 0 complexity | 65961be36e48ef972e17c4de93c44e44 MD5 | raw file
Possible License(s): Apache-2.0
- using Delta.Engine;
- using Delta.Scenes.UserInterfaces;
- using Delta.Scenes.UserInterfaces.Controls;
- using Delta.Utilities.Datatypes;
- using NUnit.Framework;
-
- namespace Delta.Scenes.Tests
- {
- /// <summary>
- /// Tool tip popup tests
- /// </summary>
- public class ToolTipPopupTests
- {
- #region ShowToolTip (LongRunning)
- /// <summary>
- /// Show tool tip
- /// </summary>
- [Test, Category("Visual")]
- public static void ShowToolTip()
- {
- Button anyControl = new Button
- {
- LocalArea = Rectangle.FromCenter(Point.Half, new Size(0.3f, 0.1f)),
- Text = "SampleButton",
- ToolTipText = "SampleButton ToolTip",
- };
-
- //anyControl.ToolTip = new ToolTipPopup
- //{
- // MinWaitTime = 1.0f,
- // Text = anyControl.Text + " ToolTip",
- //};
-
- Screen testScene = new Screen();
- testScene.Add(anyControl);
-
- // Open now the scene to "activate" for the test
- testScene.Open();
-
- //Settings.ShowUIDebugInfo = true;
- Application.Start();
- }
- #endregion
- }
- }