Implemented interface member:
method
GetFormats
System.Windows.Forms.IDataObject.GetFormats()
12 references to GetFormats
System.Windows.Forms.Tests (12)
System\Windows\Forms\ClipboardTests.cs (2)
124
result1.
GetFormats
().Should().BeEquivalentTo(result2.
GetFormats
());
System\Windows\Forms\DataObjectTests.cs (9)
680
dataObject.
GetFormats
().Cast<string>().Should().BeEmpty();
688
dataObject.
GetFormats
().Should().Equal(["format1"]);
691
dataObject.
GetFormats
().Should().Equal(["format1", "UnicodeText"]);
695
dataObject.
GetFormats
().OrderBy(s => s).Should().Equal(["format1", "format2", "UnicodeText"]);
699
dataObject.
GetFormats
().OrderBy(s => s).Should().Equal(["Bitmap", "format1", "format2", "System.Drawing.Bitmap", "UnicodeText", "WindowsForms10PersistentObject"]);
715
.Setup(o => o.
GetFormats
())
721
mockDataObject.Object.
GetFormats
().Should().BeSameAs(result);
743
dataObject.
GetFormats
().Should().BeSameAs(result);
2812
data.
GetFormats
().Should().BeEquivalentTo([typeof(Bitmap).FullName, nameof(Bitmap), customFormat]);
System\Windows\Forms\DragDropHelperTests.cs (1)
253
foreach (string format in dataObject.
GetFormats
())