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)
534dataObject.GetFormats().Cast<string>().Should().BeEmpty(); 542dataObject.GetFormats().Should().Equal(["format1"]); 545dataObject.GetFormats().Should().Equal(["format1", "UnicodeText"]); 549dataObject.GetFormats().OrderBy(s => s).Should().Equal(["format1", "format2", "UnicodeText"]); 553dataObject.GetFormats().OrderBy(s => s).Should().Equal(["Bitmap", "format1", "format2", "System.Drawing.Bitmap", "UnicodeText", "WindowsForms10PersistentObject"]); 569.Setup(o => o.GetFormats()) 575mockDataObject.Object.GetFormats().Should().BeSameAs(result); 597dataObject.GetFormats().Should().BeSameAs(result); 2503data.GetFormats().Should().BeEquivalentTo([typeof(Bitmap).FullName, nameof(Bitmap), customFormat]);
System\Windows\Forms\DragDropHelperTests.cs (1)
246foreach (string format in dataObject.GetFormats())