Implemented interface member:
method
GetFormats
System.Windows.Forms.IDataObject.GetFormats(System.Boolean)
13 references to GetFormats
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
253
public virtual string[] GetFormats() =>
GetFormats
(autoConvert: true);
System.Windows.Forms.Tests (12)
System\Windows\Forms\DataObjectTests.cs (12)
718
.Setup(o => o.
GetFormats
(true))
722
mockDataObject.Verify(o => o.
GetFormats
(true), Times.Once());
752
dataObject.
GetFormats
(autoConvert).Should().BeEmpty();
760
dataObject.
GetFormats
(autoConvert: true).Should().Equal(["format1"]);
761
dataObject.
GetFormats
(autoConvert: false).Should().Equal(["format1"]);
764
dataObject.
GetFormats
(autoConvert: true).Should().Equal(["format1", "UnicodeText"]);
765
dataObject.
GetFormats
(autoConvert: false).Should().Equal(["format1", "UnicodeText"]);
769
dataObject.
GetFormats
(autoConvert: true).OrderBy(s => s).Should().Equal(["format1", "format2", "UnicodeText"]);
770
dataObject.
GetFormats
(autoConvert: false).OrderBy(s => s).Should().Equal(["format1", "format2", "UnicodeText"]);
774
dataObject.
GetFormats
(autoConvert: true).OrderBy(s => s).Should().Equal(["Bitmap", "format1", "format2", "System.Drawing.Bitmap", "UnicodeText", "WindowsForms10PersistentObject"]);
775
dataObject.
GetFormats
(autoConvert: false).OrderBy(s => s).Should().Equal(["format1", "format2", "System.Drawing.Bitmap", "UnicodeText", "WindowsForms10PersistentObject"]);
798
dataObject.
GetFormats
(autoConvert).Should().BeSameAs(result);