Beispiel #1
0
 public void AudioSampleRate_Test1()
 {
     using (var a = new LibMPlayerCommon.MpvDiscover(GlobalVariables.Video1Path, GlobalVariables.LibMpvPath))
     {
         a.Execute();
         Assert.AreEqual(22050, a.AudioSampleRate);
     }
 }
Beispiel #2
0
 public void Width_Test1()
 {
     using (var a = new LibMPlayerCommon.MpvDiscover(GlobalVariables.Video1Path, GlobalVariables.LibMpvPath))
     {
         a.Execute();
         Assert.AreEqual(320, a.Width);
     }
 }
Beispiel #3
0
 public void AudioList_Test1()
 {
     using (var a = new LibMPlayerCommon.MpvDiscover(GlobalVariables.Video1Path, GlobalVariables.LibMpvPath))
     {
         a.Execute();
         Assert.AreEqual(1, a.AudioList.Count);
     }
 }
Beispiel #4
0
 public void AspectRatio_Test1()
 {
     using (var a = new LibMPlayerCommon.MpvDiscover(GlobalVariables.Video1Path, GlobalVariables.LibMpvPath))
     {
         a.Execute();
         Assert.AreEqual(1.33333302f, a.AspectRatio);
     }
 }
Beispiel #5
0
 public void IsAudio_Test1()
 {
     using (var a = new LibMPlayerCommon.MpvDiscover(GlobalVariables.Video1Path, GlobalVariables.LibMpvPath))
     {
         a.Execute();
         Assert.AreEqual(true, a.Audio);
     }
 }
Beispiel #6
0
 public void VideoBitrate_Test2()
 {
     using (var a = new LibMPlayerCommon.MpvDiscover(GlobalVariables.Video2Path, GlobalVariables.LibMpvPath))
     {
         a.Execute();
         Assert.AreEqual(330, a.VideoBitrate);
     }
 }
Beispiel #7
0
 public void Length_Test2()
 {
     using (var a = new LibMPlayerCommon.MpvDiscover(GlobalVariables.Video2Path, GlobalVariables.LibMpvPath))
     {
         a.Execute();
         Assert.AreEqual(255, a.Length);
     }
 }