using System; using System.Text; using Core; using Core.UIItems.MenuItems; using Core.UIItems.WindowItems; using Core.Factory; using Core.UIItems.Finders; using Core.WindowsAPI; using Core.UIItems; namespace Kosmos.Tests.Gui { public class WhiteFacade { public Application Application { get { return application; } } public WhiteFacade AssertHasExited () { if (false == Application.HasExited) Assert (Application.HasExited, "Application has not exited."); return this; } public WhiteFacade AssertIsEnabled(bool enabled) { Assert (enabled == currentUIItem.Enabled, "The element is not {0}.", enabled ? "enabled" : "disabled"); return this; } public WhiteFacade Button (string buttonText) { Button button = currentWindow.Get