diff --git a/src/ScreenCaptureKit/SCContentFilter.cs b/src/ScreenCaptureKit/SCContentFilter.cs index 6fc6a6593755..5a7d33f400ab 100644 --- a/src/ScreenCaptureKit/SCContentFilter.cs +++ b/src/ScreenCaptureKit/SCContentFilter.cs @@ -47,7 +47,7 @@ public SCContentFilter (SCDisplay display, SCWindow [] windows, SCContentFilterO default: ObjCRuntime.ThrowHelper.ThrowArgumentOutOfRangeException (nameof (option), $"Unknown option {option}"); break; - }; + } } /// Create a new to capture the contents of the specified display, including or excluding specific apps. @@ -67,7 +67,7 @@ public SCContentFilter (SCDisplay display, SCRunningApplication [] applications, default: ObjCRuntime.ThrowHelper.ThrowArgumentOutOfRangeException (nameof (option), $"Unknown option {option}"); break; - }; + } } } } diff --git a/tests/common/Touch.Unit/Touch.Client/Runner/HttpTextWriter.cs b/tests/common/Touch.Unit/Touch.Client/Runner/HttpTextWriter.cs index 9365244f70b5..2e97df0bbd96 100644 --- a/tests/common/Touch.Unit/Touch.Client/Runner/HttpTextWriter.cs +++ b/tests/common/Touch.Unit/Touch.Client/Runner/HttpTextWriter.cs @@ -76,7 +76,7 @@ async Task SendData (string action, string uploadData) throw new Exception ("Failed to send data."); } Console.WriteLine ("Resending data: {0} Length: {1} to: {2} Attempts left: {3}", action, uploadData.Length, url.AbsoluteString, attempts_left); - }; + } } async void SendThread () diff --git a/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs b/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs index f59e7497e3a3..9a78ff678b0e 100644 --- a/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs +++ b/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs @@ -229,7 +229,7 @@ public void TestCallbackBackground (bool stronglyTyped) // This looks weird, but it seems the video encoder can become overwhelmed otherwise, and it // will start failing (and taking a long time to do so, eventually timing out the test). Thread.Sleep (10); - }; + } status = session.CompleteFrames (new CMTime (40 * frameCount, 1)); Assert.AreEqual (status, VTStatus.Ok, "status finished"); Assert.AreEqual (callbackCounter, frameCount, "frame count"); diff --git a/tests/test-libraries/testgenerator.cs b/tests/test-libraries/testgenerator.cs index 07184db73a07..210dd783d59e 100644 --- a/tests/test-libraries/testgenerator.cs +++ b/tests/test-libraries/testgenerator.cs @@ -164,7 +164,7 @@ static string GetValue (char t, int i, int multiplier = 1) byte byteValue; unchecked { byteValue = (byte) ((i + 1) * multiplier); - }; + } return byteValue.ToString (CultureInfo.InvariantCulture); case 's': case 'i':