20 instantiations of SimpleTestData
ComDisabled.Tests (3)
ClipboardComTests.cs (2)
28
SimpleTestData testData =
new
() { X = 1, Y = 1 };
42
SimpleTestData testData =
new
() { X = 1, Y = 1 };
DataObjectComTests.cs (1)
21
SimpleTestData testData =
new
() { X = 1, Y = 1 };
System.Windows.Forms.Tests (16)
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (3)
26
SimpleTestData testData =
new
() { X = 1, Y = 1 };
35
SimpleTestData testData =
new
() { X = 1, Y = 1 };
58
SimpleTestData testData =
new
() { X = 1, Y = 1 };
System\Windows\Forms\ClipboardTests.cs (7)
944
SimpleTestData testData =
new
() { X = 1, Y = 1 };
957
SimpleTestData testData =
new
() { X = 1, Y = 1 };
975
SimpleTestData testData =
new
() { X = 1, Y = 1 };
991
SimpleTestData testData1 =
new
() { X = 1, Y = 1 };
992
SimpleTestData testData2 =
new
() { Y = 2, X = 2 };
1014
SimpleTestData testData =
new
() { X = 1, Y = 1 };
1092
SimpleTestData data =
new
() { X = 1, Y = 1 };
System\Windows\Forms\DataObjectTests.cs (6)
2852
SimpleTestData testData =
new
() { X = 1, Y = 1 };
2864
SimpleTestData testData =
new
() { X = 1, Y = 1 };
2877
SimpleTestData testData1 =
new
() { X = 1, Y = 1 };
2878
SimpleTestData testData2 =
new
() { Y = 2, X = 2 };
3028
SimpleTestData testData =
new
() { X = 1, Y = 1 };
3045
dataObject.SetDataAsJson("test", new
SimpleTestData
() { X = 1, Y = 1 });
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
499
SimpleTestData testData =
new
() { X = 10, Y = 10 };
52 references to SimpleTestData
ComDisabled.Tests (6)
ClipboardComTests.cs (4)
28
SimpleTestData
testData = new() { X = 1, Y = 1 };
34
dataObject.TryGetData("testData", out
SimpleTestData
deserialized).Should().BeTrue();
42
SimpleTestData
testData = new() { X = 1, Y = 1 };
50
returnedDataObject.TryGetData("testData", out
SimpleTestData
deserialized).Should().BeTrue();
DataObjectComTests.cs (2)
21
SimpleTestData
testData = new() { X = 1, Y = 1 };
32
typedOutData.TryGetData("testData", out
SimpleTestData
deserialized).Should().BeTrue();
System.Windows.Forms.Tests (42)
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (15)
26
SimpleTestData
testData = new() { X = 1, Y = 1 };
28
ITypeResolver resolver = new DataObject.Composition.Binder(typeof(
SimpleTestData
), resolver: null, legacyMode: false);
29
format.TryGetObjectFromJson<
SimpleTestData
>(resolver, out _).Should().BeFalse();
35
SimpleTestData
testData = new() { X = 1, Y = 1 };
37
JsonData<
SimpleTestData
> json = new()
48
ITypeResolver resolver = new DataObject.Composition.Binder(typeof(
SimpleTestData
), resolver: null, legacyMode: false);
50
binary.TryGetObjectFromJson<
SimpleTestData
>(resolver, out object? result).Should().BeTrue();
51
SimpleTestData
deserialized = result.Should().BeOfType<
SimpleTestData
>().Which;
58
SimpleTestData
testData = new() { X = 1, Y = 1 };
59
JsonData<
SimpleTestData
> data = new()
72
SimpleTestData
deserialized = binaryFormatter.Deserialize(stream).Should().BeOfType<
SimpleTestData
>().Which;
87
&& innerTypeName.Matches(typeof(
SimpleTestData
).ToTypeName()))
89
result = JsonSerializer.Deserialize<
SimpleTestData
>(JsonBytes);
System\Windows\Forms\ClipboardTests.cs (16)
944
SimpleTestData
testData = new() { X = 1, Y = 1 };
949
dataObject.TryGetData("testDataFormat", out
SimpleTestData
deserialized).Should().BeTrue();
957
SimpleTestData
testData = new() { X = 1, Y = 1 };
975
SimpleTestData
testData = new() { X = 1, Y = 1 };
982
returnedDataObject.TryGetData("testDataFormat", out
SimpleTestData
deserialized).Should().BeTrue();
991
SimpleTestData
testData1 = new() { X = 1, Y = 1 };
992
SimpleTestData
testData2 = new() { Y = 2, X = 2 };
999
Clipboard.TryGetData("testData1", out
SimpleTestData
deserializedTestData1).Should().BeTrue();
1001
Clipboard.TryGetData("testData2", out
SimpleTestData
deserializedTestData2).Should().BeTrue();
1014
SimpleTestData
testData = new() { X = 1, Y = 1 };
1058
typeof(
SimpleTestData
).AssemblyQualifiedName.Should().NotBe(checkedResult.AssemblyQualifiedName);
1059
typeof(
SimpleTestData
).ToTypeName().Matches(checkedResult).Should().BeTrue();
1061
JsonSerializer.Deserialize(byteData.GetArray(), typeof(
SimpleTestData
)).Should().BeEquivalentTo(testData);
1092
SimpleTestData
data = new() { X = 1, Y = 1 };
1109
JsonSerializer.Deserialize(jsonBytes, typeof(
SimpleTestData
)).Should().BeEquivalentTo(data);
1115
received.Deserialize<
SimpleTestData
>(format).Should().BeEquivalentTo(data);
System\Windows\Forms\DataObjectTests.cs (11)
21
using SimpleTestData = System.Windows.Forms.TestUtilities.DataObjectTestHelpers.
SimpleTestData
;
2852
SimpleTestData
testData = new() { X = 1, Y = 1 };
2857
dataObject.TryGetData(format, out
SimpleTestData
deserialized).Should().BeTrue();
2864
SimpleTestData
testData = new() { X = 1, Y = 1 };
2870
wrapped.TryGetData(format, out
SimpleTestData
deserialized).Should().BeTrue();
2877
SimpleTestData
testData1 = new() { X = 1, Y = 1 };
2878
SimpleTestData
testData2 = new() { Y = 2, X = 2 };
2884
data.TryGetData("testData1", out
SimpleTestData
deserializedTestData1).Should().BeTrue();
2886
data.TryGetData("testData2", out
SimpleTestData
deserializedTestData2).Should().BeTrue();
3028
SimpleTestData
testData = new() { X = 1, Y = 1 };
3031
storedData.Should().BeOfType<JsonData<
SimpleTestData
>>();
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (4)
499
SimpleTestData
testData = new() { X = 10, Y = 10 };
507
if (e.Data?.GetDataPresent(typeof(
SimpleTestData
)) ?? false)
514
if (e.Data?.TryGetData(out
SimpleTestData
data) ?? false)
545
dropped.Should().BeOfType(typeof(
SimpleTestData
));