IAudioBassTest.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // -----------------------------------------
  2. // SoundScribe (TM) and related software.
  3. //
  4. // Copyright (C) 2007-2011 Vannatech
  5. // http://www.vannatech.com
  6. // All rights reserved.
  7. //
  8. // This source code is subject to the MIT License.
  9. // http://www.opensource.org/licenses/mit-license.php
  10. //
  11. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  17. // THE SOFTWARE.
  18. // -----------------------------------------
  19. using System;
  20. using CoreAudioTests.Common;
  21. using Microsoft.VisualStudio.TestTools.UnitTesting;
  22. using Vannatech.CoreAudio.Interfaces;
  23. using Vannatech.CoreAudio.Constants;
  24. using System.Linq;
  25. namespace CoreAudioTests.DeviceTopologyApi
  26. {
  27. /// <summary>
  28. /// Tests all methods of the IAudioBass interface.
  29. /// </summary>
  30. [TestClass]
  31. public class IAudioBassTest
  32. {
  33. /// <summary>
  34. /// Tests that the channel count can be received, for each applicable part in the system.
  35. /// </summary>
  36. [TestMethod]
  37. public void IAudioBass_GetChannelCount()
  38. {
  39. (new IPerChannelDbLevelTest<IAudioBass>()).ExecuteGetChannelCountTest();
  40. }
  41. /// <summary>
  42. /// Tests that the level of each channel can be received, for each applicable part in the system.
  43. /// </summary>
  44. [TestMethod]
  45. public void IAudioBass_GetLevel()
  46. {
  47. (new IPerChannelDbLevelTest<IAudioBass>()).ExecuteGetLevelTest();
  48. }
  49. /// <summary>
  50. /// Tests that the level range of each channel can be received, for each applicable part in the system.
  51. /// </summary>
  52. [TestMethod]
  53. public void IAudioBass_GetLevelRange()
  54. {
  55. (new IPerChannelDbLevelTest<IAudioBass>()).ExecuteGetLevelRangeTest();
  56. }
  57. /// <summary>
  58. /// Tests that the level of each channel can be set, for each applicable part in the system.
  59. /// </summary>
  60. [TestMethod]
  61. public void IAudioBass_SetLevel()
  62. {
  63. (new IPerChannelDbLevelTest<IAudioBass>()).ExecuteSetLevelTest();
  64. }
  65. /// <summary>
  66. /// Tests that the level of all channels can be set, for each applicable part in the system.
  67. /// </summary>
  68. [TestMethod]
  69. public void IAudioBass_SetLevelAllChannels()
  70. {
  71. (new IPerChannelDbLevelTest<IAudioBass>()).ExecuteSetLevelAllChannelsTest();
  72. }
  73. /// <summary>
  74. /// Tests that the level of all channels can be set uniformly, for each applicable part in the system.
  75. /// </summary>
  76. [TestMethod]
  77. public void IAudioBass_SetLevelUniform()
  78. {
  79. (new IPerChannelDbLevelTest<IAudioBass>()).ExecuteSetLevelUniformTest();
  80. }
  81. }
  82. }