38 references to WaveAudio
System.Windows.Forms (4)
System\Windows\Forms\OLE\Clipboard.cs (3)
177
/// Indicates whether there is data on the Clipboard in the <see cref="DataFormats.
WaveAudio
"/> format.
271
/// Clears the <see cref="Clipboard"/> and then adds data in the <see cref="DataFormats.
WaveAudio
"/> format.
276
/// Clears the <see cref="Clipboard"/> and then adds data in the <see cref="DataFormats.
WaveAudio
"/> format.
System\Windows\Forms\OLE\DataObject.cs (1)
138
public virtual Stream? GetAudioStream() => GetData(DataFormats.
WaveAudio
, autoConvert: false) as Stream;
System.Windows.Forms.Tests (34)
System\Windows\Forms\ClipboardTests.cs (8)
162
Clipboard.GetData(DataFormats.
WaveAudio
).Should().BeOfType<MemoryStream>().Which.ToArray().Should().Equal(audioBytes);
164
Clipboard.ContainsData(DataFormats.
WaveAudio
).Should().BeTrue();
174
Clipboard.GetData(DataFormats.
WaveAudio
).Should().BeNull();
176
Clipboard.ContainsData(DataFormats.
WaveAudio
).Should().BeTrue();
194
Clipboard.GetData(DataFormats.
WaveAudio
).Should().BeOfType<MemoryStream>().Which.ToArray().Should().Equal(audioBytes);
196
Clipboard.ContainsData(DataFormats.
WaveAudio
).Should().BeTrue();
206
Clipboard.GetData(DataFormats.
WaveAudio
).Should().BeNull();
208
Clipboard.ContainsData(DataFormats.
WaveAudio
).Should().BeTrue();
System\Windows\Forms\DataFormatsTests.cs (2)
33
yield return new object[] { DataFormats.
WaveAudio
, "WaveAudio" };
60
yield return new object[] { DataFormats.
WaveAudio
, "WaveAudio", 12 };
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (2)
119
dataObject.ContainsAudio().Should().Be(format == DataFormats.
WaveAudio
);
179
dataObject.ContainsAudio().Should().Be(format == DataFormats.
WaveAudio
);
System\Windows\Forms\DataObjectTests.cs (22)
29
DataFormats.
WaveAudio
,
72
.Setup(o => o.GetDataPresent(DataFormats.
WaveAudio
, false))
76
mockDataObject.Verify(o => o.GetDataPresent(DataFormats.
WaveAudio
, false), Times.Once());
220
dataObject.SetData(DataFormats.
WaveAudio
, result);
233
.Setup(o => o.GetData(DataFormats.
WaveAudio
, false))
237
mockDataObject.Verify(o => o.GetData(DataFormats.
WaveAudio
, false), Times.Once());
829
dataObject.GetData(DataFormats.
WaveAudio
, autoConvert: true).Should().BeOfType<MemoryStream>().Subject.ToArray().Should().Equal(audioBytes);
830
dataObject.GetData(DataFormats.
WaveAudio
, autoConvert: false).Should().BeOfType<MemoryStream>().Subject.ToArray().Should().Equal(audioBytes);
833
dataObject.GetDataPresent(DataFormats.
WaveAudio
, autoConvert: true).Should().BeTrue();
834
dataObject.GetDataPresent(DataFormats.
WaveAudio
, autoConvert: false).Should().BeTrue();
858
.Setup(o => o.SetData(DataFormats.
WaveAudio
, false, It.IsAny<MemoryStream>()))
862
mockDataObject.Verify(o => o.SetData(DataFormats.
WaveAudio
, false, It.IsAny<MemoryStream>()), Times.Once());
887
dataObject.GetData(DataFormats.
WaveAudio
, autoConvert: true).Should().BeSameAs(audioStream);
888
dataObject.GetData(DataFormats.
WaveAudio
, autoConvert: false).Should().BeSameAs(audioStream);
891
dataObject.GetDataPresent(DataFormats.
WaveAudio
, autoConvert: true).Should().BeTrue();
892
dataObject.GetDataPresent(DataFormats.
WaveAudio
, autoConvert: false).Should().BeTrue();
904
.Setup(o => o.SetData(DataFormats.
WaveAudio
, false, audioStream))
907
mockDataObject.Verify(o => o.SetData(DataFormats.
WaveAudio
, false, audioStream), Times.Once());
916
.Setup(o => o.SetData(DataFormats.
WaveAudio
, false, audioStream))
920
mockDataObject.Verify(o => o.SetData(DataFormats.
WaveAudio
, false, audioStream), Times.Once());
1112
dataObject.ContainsAudio().Should().Be(format == DataFormats.
WaveAudio
);
1764
{ DataFormats.
WaveAudio
, TYMED.TYMED_HGLOBAL }