Implemented interface member:
method
GetFormats
System.Windows.Forms.IDataObject.GetFormats(System.Boolean)
16 references to GetFormats
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
245
public virtual string[] GetFormats() =>
GetFormats
(autoConvert: true);
System.Windows.Forms.Tests (15)
System\Windows\Forms\DataObjectTests.cs (15)
799
.Setup(o => o.
GetFormats
(true))
803
mockDataObject.Verify(o => o.
GetFormats
(true), Times.Once());
833
dataObject.
GetFormats
(autoConvert).Should().BeEmpty();
841
dataObject.
GetFormats
(autoConvert: true).Should().Equal(["format1"]);
842
dataObject.
GetFormats
(autoConvert: false).Should().Equal(["format1"]);
845
dataObject.
GetFormats
(autoConvert: true).Should().Equal(["format1", "UnicodeText"]);
846
dataObject.
GetFormats
(autoConvert: false).Should().Equal(["format1", "UnicodeText"]);
850
dataObject.
GetFormats
(autoConvert: true).OrderBy(s => s).Should().Equal(["format1", "format2", "UnicodeText"]);
851
dataObject.
GetFormats
(autoConvert: false).OrderBy(s => s).Should().Equal(["format1", "format2", "UnicodeText"]);
855
dataObject.
GetFormats
(autoConvert: true).OrderBy(s => s).Should().Equal(["Bitmap", "format1", "format2", "System.Drawing.Bitmap", "UnicodeText", "WindowsForms10PersistentObject"]);
856
dataObject.
GetFormats
(autoConvert: false).OrderBy(s => s).Should().Equal(["format1", "format2", "System.Drawing.Bitmap", "UnicodeText", "WindowsForms10PersistentObject"]);
879
dataObject.
GetFormats
(autoConvert).Should().BeSameAs(result);
3173
wrapped.
GetFormats
(false);
3174
mock.Verify(o => o.
GetFormats
(false), Times.Once());
3179
mock.Verify(o => o.
GetFormats
(true), Times.Once());