public void TestMethod1() { //Testing not finished, got stuck on this one. //Hard to unit test GUI WelcomeUC testUC = new WelcomeUC(); testUC.InitializeComponent(); //Assert.AreEqual(testUC.InitializeComponent, ); }
public TwitterUC() { if (UserHandler.Twitter != null && !UserHandler.Twitter.userLoggedIn()) { WelcomeUC welUcObject = new WelcomeUC(); return; } else if (UserHandler.Twitter == null) { WelcomeUC welUcObject = new WelcomeUC(); return; } InitializeComponent(); getTweetsToList(); }
public void loadWelcomePanel() { stackMid.Children.Clear(); WelcomeUC welUcObject = new WelcomeUC(); stackMid.Children.Add(welUcObject); }