public async Task CanCreateReleaseFile()
        {
            var dummyReleaseFileEntries = CreateReleaseFiles();

            Assert.True(
                await ReleaseFile.CreateReleaseFile(dummyReleaseFileEntries, TestContext.CurrentContext.WorkDirectory),
                "Wasn't able to create the release file");

            Assert.True(
                dummyReleaseFileEntries.SequenceEqual(
                    ReleaseFile.ReadReleaseFile(File.ReadLines(ReleaseFileLocation))),
                "What we made and what we read from disk isn't the same");
        }
        public static UpdateInfo?GetUpdateInfo(string fileLocation, ApplicationMetadata metadata, bool grabDeltaUpdates, object?tag = null, string?folderLocation = null)
        {
            if (!File.Exists(fileLocation))
            {
                Logger.Error("{0} doesn't exist, can't get UpdateInfo", fileLocation);
                return(null);
            }

            return(new UpdateInfo(metadata.ApplicationVersion,
                                  ReleaseFile.ReadReleaseFile(File.ReadLines(fileLocation))
                                  .ToReleaseEntries(folderLocation ?? metadata.TempFolder, tag)
                                  .FilterReleases(metadata.ApplicationFolder, grabDeltaUpdates, metadata.ApplicationVersion).ToArray()));
        }