private string ReadReleaseNotesFile(Version version)
 {
     try
     {
         return(File.ReadAllText(History.GetReleaseNotesFile(version)));
     }
     catch (Exception)
     {
         return("");
     }
 }
        public void History_Versions_ShouldAllHaveReleaseNotes()
        {
            string assemblyDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            // ReSharper disable once AssignNullToNotNullAttribute
            string releaseNotesDir = Path.Combine(assemblyDir, "Resources", "ReleaseNotes");

            foreach (Version version in History.Versions)
            {
                string releaseNotesFile = Path.Combine(releaseNotesDir, History.GetReleaseNotesFile(version));
                releaseNotesFile.AsFileInfo().Should().Exist($"release notes for version {version} should be located in folder VsPackage\\Resources\\ReleaseNotes and have same properties as other release notes files");

                File.ReadAllText(releaseNotesFile).Should()
                .NotBeNullOrEmpty($"release notes for version {version} should have some content");
            }
        }