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