20 instantiations of SimpleTestData
ComDisabled.Tests (3)
ClipboardComTests.cs (2)
30
SimpleTestData testData =
new
() { X = 1, Y = 1 };
44
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)
28
SimpleTestData testData =
new
() { X = 1, Y = 1 };
38
SimpleTestData testData =
new
() { X = 1, Y = 1 };
63
SimpleTestData testData =
new
() { X = 1, Y = 1 };
System\Windows\Forms\ClipboardTests.cs (7)
944
SimpleTestData testData =
new
() { X = 1, Y = 1 };
956
SimpleTestData testData =
new
() { X = 1, Y = 1 };
973
SimpleTestData testData =
new
() { X = 1, Y = 1 };
998
SimpleTestData testData1 =
new
() { X = 1, Y = 1 };
999
SimpleTestData testData2 =
new
() { Y = 2, X = 2 };
1020
SimpleTestData testData =
new
() { X = 1, Y = 1 };
1098
SimpleTestData data =
new
() { X = 1, Y = 1 };
System\Windows\Forms\DataObjectTests.cs (6)
2941
SimpleTestData testData =
new
() { X = 1, Y = 1 };
2953
SimpleTestData testData =
new
() { X = 1, Y = 1 };
2966
SimpleTestData testData1 =
new
() { X = 1, Y = 1 };
2967
SimpleTestData testData2 =
new
() { Y = 2, X = 2 };
3117
SimpleTestData testData =
new
() { X = 1, Y = 1 };
3130
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)
30
SimpleTestData
testData = new() { X = 1, Y = 1 };
36
dataObject.TryGetData("testData", out
SimpleTestData
deserialized).Should().BeTrue();
44
SimpleTestData
testData = new() { X = 1, Y = 1 };
52
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)
28
SimpleTestData
testData = new() { X = 1, Y = 1 };
31
ITypeResolver resolver = new TypeBinder<CoreNrbfSerializer>(typeof(
SimpleTestData
), in request);
32
format.TryGetObjectFromJson<
SimpleTestData
>(resolver, out _).Should().BeFalse();
38
SimpleTestData
testData = new() { X = 1, Y = 1 };
40
JsonData<
SimpleTestData
> json = new()
53
ITypeResolver resolver = new TypeBinder<CoreNrbfSerializer>(typeof(
SimpleTestData
), in request);
55
binary.TryGetObjectFromJson<
SimpleTestData
>(resolver, out object? result).Should().BeTrue();
56
SimpleTestData
deserialized = result.Should().BeOfType<
SimpleTestData
>().Which;
63
SimpleTestData
testData = new() { X = 1, Y = 1 };
64
JsonData<
SimpleTestData
> data = new()
77
SimpleTestData
deserialized = binaryFormatter.Deserialize(stream).Should().BeOfType<
SimpleTestData
>().Which;
92
&& innerTypeName.Matches(typeof(
SimpleTestData
).ToTypeName()))
94
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();
956
SimpleTestData
testData = new() { X = 1, Y = 1 };
973
SimpleTestData
testData = new() { X = 1, Y = 1 };
980
returnedDataObject.TryGetData("testDataFormat", out
SimpleTestData
deserialized).Should().BeTrue();
998
SimpleTestData
testData1 = new() { X = 1, Y = 1 };
999
SimpleTestData
testData2 = new() { Y = 2, X = 2 };
1006
Clipboard.TryGetData("testData1", out
SimpleTestData
deserializedTestData1).Should().BeTrue();
1008
Clipboard.TryGetData("testData2", out
SimpleTestData
deserializedTestData2).Should().BeTrue();
1020
SimpleTestData
testData = new() { X = 1, Y = 1 };
1064
typeof(
SimpleTestData
).AssemblyQualifiedName.Should().NotBe(checkedResult.AssemblyQualifiedName);
1065
typeof(
SimpleTestData
).ToTypeName().Matches(checkedResult).Should().BeTrue();
1067
JsonSerializer.Deserialize(byteData.GetArray(), typeof(
SimpleTestData
)).Should().BeEquivalentTo(testData);
1098
SimpleTestData
data = new() { X = 1, Y = 1 };
1116
JsonSerializer.Deserialize(jsonBytes, typeof(
SimpleTestData
)).Should().BeEquivalentTo(data);
1124
received.Deserialize<
SimpleTestData
>(format).Should().BeEquivalentTo(data);
System\Windows\Forms\DataObjectTests.cs (11)
21
using SimpleTestData = System.Windows.Forms.TestUtilities.DataObjectTestHelpers.
SimpleTestData
;
2941
SimpleTestData
testData = new() { X = 1, Y = 1 };
2946
dataObject.TryGetData(format, out
SimpleTestData
deserialized).Should().BeTrue();
2953
SimpleTestData
testData = new() { X = 1, Y = 1 };
2959
wrapped.TryGetData(format, out
SimpleTestData
deserialized).Should().BeTrue();
2966
SimpleTestData
testData1 = new() { X = 1, Y = 1 };
2967
SimpleTestData
testData2 = new() { Y = 2, X = 2 };
2973
data.TryGetData("testData1", out
SimpleTestData
deserializedTestData1).Should().BeTrue();
2975
data.TryGetData("testData2", out
SimpleTestData
deserializedTestData2).Should().BeTrue();
3117
SimpleTestData
testData = new() { X = 1, Y = 1 };
3120
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
));