28 references to ContainsText
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
129public virtual bool ContainsText() => ContainsText(TextDataFormat.UnicodeText);
System.Windows.Forms.Tests (27)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (10)
122dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 123dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText); 124dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf); 125dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.Html); 126dataObject.ContainsText(TextDataFormat.CommaSeparatedValue).Should().Be(format == DataFormats.CommaSeparatedValue); 182dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 183dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText); 184dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf); 185dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.Html); 186dataObject.ContainsText(TextDataFormat.CommaSeparatedValue).Should().Be(format == DataFormats.CommaSeparatedValue);
System\Windows\Forms\DataObjectTests.cs (17)
141.Setup(o => o.ContainsText(TextDataFormat.UnicodeText)) 145mockDataObject.Verify(o => o.ContainsText(TextDataFormat.UnicodeText), Times.Once()); 153dataObject.ContainsText(format).Should().BeFalse(); 177.Setup(o => o.ContainsText(format)) 183mockDataObject.Object.ContainsText(format).Should().Be(result); 192((Action)(() => dataObject.ContainsText(format))).Should().Throw<InvalidEnumArgumentException>().WithParameterName("format"); 1036dataObject.ContainsText(TextDataFormat.Text).Should().BeFalse(); 1037dataObject.ContainsText(TextDataFormat.UnicodeText).Should().BeFalse(); 1038dataObject.ContainsText(TextDataFormat.Rtf).Should().BeFalse(); 1039dataObject.ContainsText(TextDataFormat.Html).Should().BeFalse(); 1040dataObject.ContainsText(TextDataFormat.CommaSeparatedValue).Should().BeFalse(); 1116dataObject.ContainsText(TextDataFormat.Text).Should().BeFalse(); 1117dataObject.ContainsText(TextDataFormat.UnicodeText).Should().BeFalse(); 1118dataObject.ContainsText(TextDataFormat.Rtf).Should().BeFalse(); 1119dataObject.ContainsText(TextDataFormat.Html).Should().BeFalse(); 1120dataObject.ContainsText(TextDataFormat.CommaSeparatedValue).Should().BeFalse(); 1472dataObject.ContainsText(format).Should().BeTrue();