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