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)
123dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 124dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText); 125dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf); 126dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.Html); 127dataObject.ContainsText(TextDataFormat.CommaSeparatedValue).Should().Be(format == DataFormats.CommaSeparatedValue); 183dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 184dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText); 185dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf); 186dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.Html); 187dataObject.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();