public void FlagsTest() { string filePath = string.Empty; // TODO: Initialize to an appropriate value bool LoadData = false; // TODO: Initialize to an appropriate value ID3v2 target = new ID3v2(filePath, LoadData); // TODO: Initialize to an appropriate value ID3v2Flags expected = new ID3v2Flags(); // TODO: Initialize to an appropriate value ID3v2Flags actual; target.Flags = expected; actual = target.Flags; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
/// <summary> /// Load ID3 information from file /// </summary> /// <exception cref="FileNotFoundException">File Not Found</exception> public void Load() { FileStreamEx ID3File = new FileStreamEx(_FilePath, FileMode.Open); if (!ID3File.HaveID3v2()) // If file don't contain ID3v2 exit function { _HaveTag = false; ID3File.Close(); return; } _ver = ID3File.ReadVersion(); // Read ID3v2 version _Flags = (ID3v2Flags)ID3File.ReadByte(); // Extended Header Must Read Here ReadFrames(ID3File, ID3File.ReadSize()); ID3File.Close(); _HaveTag = true; }