/// ------------------------------------------------------------------------------------ /// <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)); }
public void ComputeStandardPcmAudioFilePath_SourceHasStandardAudioSuffixButNotExt_DoesNotDuplicateSuffix() { Assert.AreEqual(@"c:\blah\dumb" + SayMore.Properties.Settings.Default.StandardAudioFileSuffix, AudioVideoFileTypeBase.ComputeStandardPcmAudioFilePath(@"c:\blah\dumb_StandardAudio.mpg")); }
public void ComputeStandardPcmAudioFilePath_SourceDoesNotHaveStandardAudioSuffix_ReturnsCorrectPath() { Assert.AreEqual(@"c:\blah\dumb" + SayMore.Properties.Settings.Default.StandardAudioFileSuffix, AudioVideoFileTypeBase.ComputeStandardPcmAudioFilePath(@"c:\blah\dumb.mp3")); }
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)); }