Sfoglia il codice sorgente

Test that stopOnFail works during github action

Tigger Kindel 2 anni fa
parent
commit
c6a1f350c1
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      UnitTests/Application/ApplicationTests.cs

+ 5 - 0
UnitTests/Application/ApplicationTests.cs

@@ -56,6 +56,11 @@ namespace Terminal.Gui.ApplicationTests {
 			Application.Shutdown ();
 			Application.Shutdown ();
 		}
 		}
 
 
+		public void Fail ()
+		{
+			Assert.Fail("Test to prove stopOnFail is working. During CI/CD no more tests should run after this.");
+		}
+
 		[Fact]
 		[Fact]
 		public void Init_Shutdown_Cleans_Up ()
 		public void Init_Shutdown_Cleans_Up ()
 		{
 		{