public void TestParseOgg() { string path = Path.GetFullPath(TestDataSample.GetAudioPath("sample.ogg")); ParserContext context = new ParserContext(path); IMetadataParser parser = (IMetadataParser)ParserFactory.CreateMetadata(context); ToxyMetadata x = parser.Parse(); Assert.AreEqual(15, x.Count); }
public void TestParseMp3_Id3v1Only() { string path = Path.GetFullPath(TestDataSample.GetAudioPath("sample_v1_only.mp3")); ParserContext context = new ParserContext(path); IMetadataParser parser = (IMetadataParser)ParserFactory.CreateMetadata(context); ToxyMetadata x = parser.Parse(); Assert.AreEqual(11, x.Count); }