Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,6 @@ public void Clipboard_SetDataAsJson_EmptyFormat_Throws(string? format)
[WinFormsFact]
public void Clipboard_SetDataAsJson_DataObject_Throws()
{
Clipboard.Clear();
string format = "format";
Action action = () => Clipboard.SetDataAsJson(format, new DataObject());
action.Should().Throw<InvalidOperationException>();
Expand All @@ -905,7 +904,6 @@ public void Clipboard_SetDataAsJson_DataObject_Throws()
[WinFormsFact]
public void Clipboard_SetDataAsJson_WithGeneric_ReturnsExpected()
{
Clipboard.Clear();
List<Point> generic1 = [];
string format = "list";
Clipboard.SetDataAsJson(format, generic1);
Expand Down Expand Up @@ -942,7 +940,6 @@ public void Clipboard_SetDataAsJson_WithGeneric_ReturnsExpected()
[WinFormsFact]
public void Clipboard_SetDataAsJson_ReturnsExpected()
{
Clipboard.Clear();
SimpleTestData testData = new() { X = 1, Y = 1 };

Clipboard.SetDataAsJson("testDataFormat", testData);
Expand All @@ -955,7 +952,6 @@ public void Clipboard_SetDataAsJson_ReturnsExpected()
[WinFormsFact]
public void Clipboard_SetDataAsJson_GetData()
{
Clipboard.Clear();
SimpleTestData testData = new() { X = 1, Y = 1 };
// Note that this simulates out of process scenario.
Clipboard.SetDataAsJson("test", testData);
Expand All @@ -973,7 +969,6 @@ public void Clipboard_SetDataAsJson_GetData()
[BoolData]
public void Clipboard_SetDataObject_WithJson_ReturnsExpected(bool copy)
{
Clipboard.Clear();
SimpleTestData testData = new() { X = 1, Y = 1 };

DataObject dataObject = new();
Expand All @@ -999,7 +994,6 @@ public void Clipboard_SetDataObject_WithJson_ReturnsExpected(bool copy)
[BoolData]
public void Clipboard_SetDataObject_WithMultipleData_ReturnsExpected(bool copy)
{
Clipboard.Clear();
SimpleTestData testData1 = new() { X = 1, Y = 1 };
SimpleTestData testData2 = new() { Y = 2, X = 2 };
DataObject data = new();
Expand All @@ -1022,7 +1016,6 @@ public unsafe void Clipboard_Deserialize_FromStream_Manually()
// This test demonstrates how a user can manually deserialize JsonData<T> that has been serialized onto
// the clipboard from stream. This may need to be done if type JsonData<T> does not exist in the .NET version
// the user is utilizing.
Clipboard.Clear();
SimpleTestData testData = new() { X = 1, Y = 1 };
Clipboard.SetDataAsJson("testFormat", testData);

Expand Down