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)
138public virtual Stream? GetAudioStream() => GetData(DataFormats.WaveAudio, autoConvert: false) as Stream;
System.Windows.Forms.Tests (34)
System\Windows\Forms\ClipboardTests.cs (8)
162Clipboard.GetData(DataFormats.WaveAudio).Should().BeOfType<MemoryStream>().Which.ToArray().Should().Equal(audioBytes); 164Clipboard.ContainsData(DataFormats.WaveAudio).Should().BeTrue(); 174Clipboard.GetData(DataFormats.WaveAudio).Should().BeNull(); 176Clipboard.ContainsData(DataFormats.WaveAudio).Should().BeTrue(); 194Clipboard.GetData(DataFormats.WaveAudio).Should().BeOfType<MemoryStream>().Which.ToArray().Should().Equal(audioBytes); 196Clipboard.ContainsData(DataFormats.WaveAudio).Should().BeTrue(); 206Clipboard.GetData(DataFormats.WaveAudio).Should().BeNull(); 208Clipboard.ContainsData(DataFormats.WaveAudio).Should().BeTrue();
System\Windows\Forms\DataFormatsTests.cs (2)
33yield return new object[] { DataFormats.WaveAudio, "WaveAudio" }; 60yield return new object[] { DataFormats.WaveAudio, "WaveAudio", 12 };
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (2)
119dataObject.ContainsAudio().Should().Be(format == DataFormats.WaveAudio); 179dataObject.ContainsAudio().Should().Be(format == DataFormats.WaveAudio);
System\Windows\Forms\DataObjectTests.cs (22)
29DataFormats.WaveAudio, 72.Setup(o => o.GetDataPresent(DataFormats.WaveAudio, false)) 76mockDataObject.Verify(o => o.GetDataPresent(DataFormats.WaveAudio, false), Times.Once()); 220dataObject.SetData(DataFormats.WaveAudio, result); 233.Setup(o => o.GetData(DataFormats.WaveAudio, false)) 237mockDataObject.Verify(o => o.GetData(DataFormats.WaveAudio, false), Times.Once()); 829dataObject.GetData(DataFormats.WaveAudio, autoConvert: true).Should().BeOfType<MemoryStream>().Subject.ToArray().Should().Equal(audioBytes); 830dataObject.GetData(DataFormats.WaveAudio, autoConvert: false).Should().BeOfType<MemoryStream>().Subject.ToArray().Should().Equal(audioBytes); 833dataObject.GetDataPresent(DataFormats.WaveAudio, autoConvert: true).Should().BeTrue(); 834dataObject.GetDataPresent(DataFormats.WaveAudio, autoConvert: false).Should().BeTrue(); 858.Setup(o => o.SetData(DataFormats.WaveAudio, false, It.IsAny<MemoryStream>())) 862mockDataObject.Verify(o => o.SetData(DataFormats.WaveAudio, false, It.IsAny<MemoryStream>()), Times.Once()); 887dataObject.GetData(DataFormats.WaveAudio, autoConvert: true).Should().BeSameAs(audioStream); 888dataObject.GetData(DataFormats.WaveAudio, autoConvert: false).Should().BeSameAs(audioStream); 891dataObject.GetDataPresent(DataFormats.WaveAudio, autoConvert: true).Should().BeTrue(); 892dataObject.GetDataPresent(DataFormats.WaveAudio, autoConvert: false).Should().BeTrue(); 904.Setup(o => o.SetData(DataFormats.WaveAudio, false, audioStream)) 907mockDataObject.Verify(o => o.SetData(DataFormats.WaveAudio, false, audioStream), Times.Once()); 916.Setup(o => o.SetData(DataFormats.WaveAudio, false, audioStream)) 920mockDataObject.Verify(o => o.SetData(DataFormats.WaveAudio, false, audioStream), Times.Once()); 1112dataObject.ContainsAudio().Should().Be(format == DataFormats.WaveAudio); 1764{ DataFormats.WaveAudio, TYMED.TYMED_HGLOBAL }