Implemented interface member:
method
GetData
System.Windows.Forms.IDataObject.GetData(System.String)
18 references to GetData
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
243
public virtual object? GetData(Type format) => format is null ? null :
GetData
(format.FullName!);
System.Windows.Forms.Tests (17)
System\Windows\Forms\ClipboardTests.cs (4)
666
dataObject.
GetData
(DataFormats.Text).Should().Be(testString);
915
dataObject.
GetData
(format).Should().BeOfType<MemoryStream>();
922
var result1 = dataObject.
GetData
(format);
934
dataObject.
GetData
(format).Should().BeEquivalentTo(generic2);
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
116
dataObject.
GetData
(format).Should().BeSameAs(input);
System\Windows\Forms\DataObjectTests.cs (12)
258
dataObject.
GetData
(format).Should().BeNull();
281
.Setup(o => o.
GetData
(format))
287
mockDataObject.Object.
GetData
(format).Should().BeSameAs(result);
301
dataObject.
GetData
(format).Should().BeSameAs(result);
367
.Setup(o => o.
GetData
(formatName))
371
mockDataObject.Verify(o => o.
GetData
(formatName), Times.Exactly(expectedCallCount));
1197
dataObject.
GetData
(format).Should().Be(input);
1226
dataObject.
GetData
(format).Should().Be(input);
1841
data.
GetData
(DataFormats.EnhancedMetafile).Should().BeNull();
3009
dataObject.
GetData
(format).Should().Be(1);
3020
data.
GetData
(format).Should().Be(1);
3034
data.
GetData
(format).Should().BeNull();