Przeglądaj źródła

Tweaks to autoinitshutdown

Charlie Kindel 2 lat temu
rodzic
commit
f61e4daa03

+ 2 - 2
Terminal.Gui/ConsoleDrivers/FakeDriver/FakeDriver.cs

@@ -23,6 +23,7 @@ namespace Terminal.Gui {
 #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
 
 		public class Behaviors {
+
 			public bool UseFakeClipboard { get; internal set; }
 			public bool FakeClipboardAlwaysThrowsNotSupportedException { get; internal set; }
 			public bool FakeClipboardIsSupportedAlwaysFalse { get; internal set; }
@@ -39,7 +40,7 @@ namespace Terminal.Gui {
 			}
 		}
 
-		public static FakeDriver.Behaviors FakeBehaviors = new FakeDriver.Behaviors ();
+		public static FakeDriver.Behaviors FakeBehaviors = new Behaviors ();
 
 		int cols, rows, left, top;
 		public override int Cols => cols;
@@ -79,7 +80,6 @@ namespace Terminal.Gui {
 		//}
 
 		static bool sync = false;
-		static public bool usingFakeClipboard;
 
 		public FakeDriver ()
 		{

+ 0 - 4
UnitTests/TestHelpers.cs

@@ -21,8 +21,6 @@ using System.Diagnostics;
 // as a pair, and b) all unit test functions should be atomic..
 [AttributeUsage (AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
 public class AutoInitShutdownAttribute : Xunit.Sdk.BeforeAfterTestAttribute {
-	// This defines the default behavior for the AutoInitShutdown attribute.
-
 	/// <summary>
 	/// Initializes a [AutoInitShutdown] attribute, which determines if/how Application.Init and
 	/// Application.Shutdown are automatically called Before/After a test runs.
@@ -80,8 +78,6 @@ public class AutoInitShutdownAttribute : Xunit.Sdk.BeforeAfterTestAttribute {
 }
 
 class TestHelpers {
-
-
 #pragma warning disable xUnit1013 // Public method should be marked as test
 	public static void AssertDriverContentsAre (string expectedLook, ITestOutputHelper output)
 	{