You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Moving Clipboard related tests to a new class under collection Sequential #11948
@paul1956 The test under ComputerTests needs to verify the state of Clipboard Properties. Since the instance computer is only used within this test, it should not be affected by other test cases. Therefore, this file should not need to add [Collection("Sequential")], what do you think?
@LeafShi1 I am pretty sure that there is only one Clipboard, while Computer may be in instance class and it creates a New instance of ClipboardProxy, eventually you get to the Static System.Windows.Forms.Clipboard and it will not work in parallel.
<EditorBrowsable(EditorBrowsableState.Never)>
Public Class ClipboardProxy
''' <summary>
''' Removes everything from the clipboard.
''' </summary>
Public Sub Clear()
Clipboard.Clear()
End Sub
End Class
/// <summary>
/// Provides methods to place data on and retrieve data from the system clipboard. This class cannot be inherited.
/// </summary>
public static class Clipboard
Activity
LeafShi1 commentedon Aug 23, 2024
@paul1956 The test under
ComputerTestsneeds to verify the state of Clipboard Properties. Since the instance computer is only used within this test, it should not be affected by other test cases. Therefore, this file should not need to add[Collection("Sequential")], what do you think?paul1956 commentedon Aug 23, 2024
@LeafShi1 I am pretty sure that there is only one Clipboard, while Computer may be in instance class and it creates a New instance of ClipboardProxy, eventually you get to the Static System.Windows.Forms.Clipboard and it will not work in parallel.