Beispiel #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Gets the full path to what the component file's standard audio file is or should
 /// be. If the component file is not of a type that can have an annotation file, then
 /// null is returned.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 public virtual string GetSuggestedPathToStandardAudioFile()
 {
     return(!GetCanHaveAnnotationFile() ? null :
            AudioVideoFileTypeBase.ComputeStandardPcmAudioFilePath(PathToAnnotatedFile));
 }
Beispiel #2
0
 public void ComputeStandardPcmAudioFilePath_SourceHasStandardAudioSuffixButNotExt_DoesNotDuplicateSuffix()
 {
     Assert.AreEqual(@"c:\blah\dumb" + SayMore.Properties.Settings.Default.StandardAudioFileSuffix,
                     AudioVideoFileTypeBase.ComputeStandardPcmAudioFilePath(@"c:\blah\dumb_StandardAudio.mpg"));
 }
Beispiel #3
0
 public void ComputeStandardPcmAudioFilePath_SourceDoesNotHaveStandardAudioSuffix_ReturnsCorrectPath()
 {
     Assert.AreEqual(@"c:\blah\dumb" + SayMore.Properties.Settings.Default.StandardAudioFileSuffix,
                     AudioVideoFileTypeBase.ComputeStandardPcmAudioFilePath(@"c:\blah\dumb.mp3"));
 }
Beispiel #4
0
 public void ComputeStandardPcmAudioFilePath_SourceHasStandardAudioSuffixAndExt_ReturnsOriginal()
 {
     Assert.AreEqual(@"c:\blah\dumb" + SayMore.Properties.Settings.Default.StandardAudioFileSuffix,
                     AudioVideoFileTypeBase.ComputeStandardPcmAudioFilePath(@"c:\blah\dumb" + SayMore.Properties.Settings.Default.StandardAudioFileSuffix));
 }