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