[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PDV")]
[Property("COVPARAM", "MediaFormatAudioMimeType, int, int, int, int")]
- [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
public void AudioMediaFormat_PROPERTIES_ARE_SET_BY_CONSTRUCTOR()
{
- const MediaFormatAudioMimeType mimeType = MediaFormatAudioMimeType.Aac;
-
- var audioFormat = new AudioMediaFormat(mimeType, VALID_AUDIO_CHANNEL,
+ foreach(MediaFormatAudioMimeType mimeType in Enum.GetValues(typeof(MediaFormatAudioMimeType)))
+ {
+ var audioFormat = new AudioMediaFormat(mimeType, VALID_AUDIO_CHANNEL,
VALID_AUDIO_SAMPLE_RATE, VALID_AUDIO_BIT, VALID_AUDIO_BIT_RATE);
- Assert.AreEqual(mimeType, audioFormat.MimeType);
- Assert.AreEqual(VALID_AUDIO_CHANNEL, audioFormat.Channel);
- Assert.AreEqual(VALID_AUDIO_SAMPLE_RATE, audioFormat.SampleRate);
- Assert.AreEqual(VALID_AUDIO_BIT, audioFormat.Bit);
- Assert.AreEqual(VALID_AUDIO_BIT_RATE, audioFormat.BitRate);
+ Assert.AreEqual(mimeType, audioFormat.MimeType);
+ Assert.AreEqual(VALID_AUDIO_CHANNEL, audioFormat.Channel);
+ Assert.AreEqual(VALID_AUDIO_SAMPLE_RATE, audioFormat.SampleRate);
+ Assert.AreEqual(VALID_AUDIO_BIT, audioFormat.Bit);
+ Assert.AreEqual(VALID_AUDIO_BIT_RATE, audioFormat.BitRate);
+ }
}
[Test]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "CONSTR")]
[Property("COVPARAM", "MediaFormatVideoMimeType, int, int, int, int")]
- [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
public void VideoMediaFormat_PROPERTIES_ARE_SET_BY_CONSTRUCTOR()
{
- const MediaFormatVideoMimeType mimeType = MediaFormatVideoMimeType.Argb;
-
- var videoFormat = new VideoMediaFormat(mimeType, VALID_VIDEO_WIDTH,
+ foreach (MediaFormatVideoMimeType mimeType in Enum.GetValues(typeof(MediaFormatVideoMimeType)))
+ {
+ var videoFormat = new VideoMediaFormat(mimeType, VALID_VIDEO_WIDTH,
VALID_VIDEO_HEIGHT, VALID_VIDEO_FRAME_RATE, VALID_VIDEO_BIT_RATE);
- Assert.AreEqual(mimeType, videoFormat.MimeType);
- Assert.AreEqual(VALID_VIDEO_WIDTH, videoFormat.Size.Width);
- Assert.AreEqual(VALID_VIDEO_HEIGHT, videoFormat.Size.Height);
- Assert.AreEqual(VALID_VIDEO_FRAME_RATE, videoFormat.FrameRate);
- Assert.AreEqual(VALID_VIDEO_BIT_RATE, videoFormat.BitRate);
+ Assert.AreEqual(mimeType, videoFormat.MimeType);
+ Assert.AreEqual(VALID_VIDEO_WIDTH, videoFormat.Size.Width);
+ Assert.AreEqual(VALID_VIDEO_HEIGHT, videoFormat.Size.Height);
+ Assert.AreEqual(VALID_VIDEO_FRAME_RATE, videoFormat.FrameRate);
+ Assert.AreEqual(VALID_VIDEO_BIT_RATE, videoFormat.BitRate);
+ }
}
[Test]