Implemented interface member:
method
GetFormats
System.Windows.Forms.IDataObject.GetFormats()
10 references to GetFormats
System.Windows.Forms.Tests (10)
System\Windows\Forms\DataObjectTests.cs (9)
534
dataObject.
GetFormats
().Cast<string>().Should().BeEmpty();
542
dataObject.
GetFormats
().Should().Equal(["format1"]);
545
dataObject.
GetFormats
().Should().Equal(["format1", "UnicodeText"]);
549
dataObject.
GetFormats
().OrderBy(s => s).Should().Equal(["format1", "format2", "UnicodeText"]);
553
dataObject.
GetFormats
().OrderBy(s => s).Should().Equal(["Bitmap", "format1", "format2", "System.Drawing.Bitmap", "UnicodeText", "WindowsForms10PersistentObject"]);
569
.Setup(o => o.
GetFormats
())
575
mockDataObject.Object.
GetFormats
().Should().BeSameAs(result);
597
dataObject.
GetFormats
().Should().BeSameAs(result);
2503
data.
GetFormats
().Should().BeEquivalentTo([typeof(Bitmap).FullName, nameof(Bitmap), customFormat]);
System\Windows\Forms\DragDropHelperTests.cs (1)
246
foreach (string format in dataObject.
GetFormats
())