Implemented interface member:
method
GetDataPresent
System.Windows.Forms.IDataObject.GetDataPresent(System.String)
11 references to GetDataPresent
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
107
public virtual bool GetDataPresent(Type format) => format is not null &&
GetDataPresent
(format.FullName!);
System.Windows.Forms.Tests (10)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
110
dataObject.
GetDataPresent
(format).Should().BeTrue();
System\Windows\Forms\DataObjectTests.cs (9)
372
dataObject.
GetDataPresent
(format).Should().BeFalse();
395
.Setup(o => o.
GetDataPresent
(format))
401
mockDataObject.Object.
GetDataPresent
(format).Should().Be(result);
415
dataObject.
GetDataPresent
(format).Should().Be(result);
480
.Setup(o => o.
GetDataPresent
(expectedFormatName))
484
mockDataObject.Verify(o => o.
GetDataPresent
(expectedFormatName), Times.Exactly(expectedCallCount));
1024
dataObject.
GetDataPresent
(format).Should().BeTrue();
2501
data.
GetDataPresent
(customFormat).Should().BeTrue();
2502
data.
GetDataPresent
("notExist").Should().BeFalse();