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