Przeglądaj źródła

Trying to fix tests

Martin Edlund 5 lat temu
rodzic
commit
299c00b6bf
1 zmienionych plików z 27 dodań i 27 usunięć
  1. 27 27
      SketchAssistant/WhiteTests/UITest.cs

+ 27 - 27
SketchAssistant/WhiteTests/UITest.cs

@@ -62,33 +62,33 @@ namespace WhiteTests
         }
 
         /*[TestMethod]
- public void DeleteLineTest()
- {
-     Window mainWindow = setupapp();
-     Thread.Sleep(20);
-     Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
-     mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
-     Thread.Sleep(20);
-     Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
-     mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
-     Thread.Sleep(20);
-     mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
-     Thread.Sleep(20);
-     mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
-     Thread.Sleep(7000);
-     Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
-     Thread.Sleep(20);
-     mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
-     Thread.Sleep(20);
-     mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
-     Thread.Sleep(20);
-     mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
-     Thread.Sleep(20);
-     mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugThree")).Click();
-     Thread.Sleep(24000);
-     Assert.AreEqual("Last Action: Line number 0 was deleted", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
-     mainWindow.Close();
- }*/
+         public void DeleteLineTest()
+         {
+             Window mainWindow = setupapp();
+             Thread.Sleep(20);
+             Assert.AreEqual("none", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
+             mainWindow.Get<Button>(SearchCriteria.ByAutomationId("CanvasButton")).Click();
+             Thread.Sleep(20);
+             Assert.AreEqual("Last Action: A new canvas was created.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
+             mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
+             Thread.Sleep(20);
+             mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
+             Thread.Sleep(20);
+             mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugOne")).Click();
+             Thread.Sleep(7000);
+             Assert.AreEqual("Last Action: Line number 0 was drawn.", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
+             Thread.Sleep(20);
+             mainWindow.Get<Button>(SearchCriteria.ByAutomationId("DeleteButton")).Click();
+             Thread.Sleep(20);
+             mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("EditMenuButton")).Click();
+             Thread.Sleep(20);
+             mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugMode")).Click();
+             Thread.Sleep(20);
+             mainWindow.Get<Menu>(SearchCriteria.ByAutomationId("DebugThree")).Click();
+             Thread.Sleep(24000);
+             Assert.AreEqual("Last Action: Line number 0 was deleted", mainWindow.Get<TextBox>(SearchCriteria.ByAutomationId("LastActionBox")).Text.ToString());
+             mainWindow.Close();
+         }*/
 
         [TestMethod]
         public void UndoTest()