private void ValidateSchema(ListViewItem item)
        {
            string fileName = String.Empty;

            try
            {
                FB2File fc = item.Tag as FB2File;
                fileName = fc.FileInformation.Name;
                AddMessage(string.Format(Properties.Resources.ProgressValidation, fc.FileInformation.Name));
                List <string> errors = fc.ValidateSchema();
                if (errors.Count > 0)
                {
                    AddMessageRN(string.Empty);
                    foreach (string s in errors)
                    {
                        AddErrorRN(s);
                    }
                }
                else
                {
                    AddMessageRN(Properties.Resources.ValidationOk);
                }
                errors.Clear();
            }
            catch (Exception ex)
            {
                AddErrorRN(String.Format(Properties.Resources.ValidationFileError, fileName, ex.Message));
            }
        }
        public void Validate_Correct_FB2_File()
        {
            FB2File file = new FB2File(@"TestFiles\Макиавелли Николо - Государь.fb2");

            var errors = file.ValidateSchema();

            Assert.IsNotNull(errors);
            Assert.AreEqual(0, errors.Count);
        }