public AppUpdate(AppUpdates appUpdates) : this( new InternalState { AppUpdates = appUpdates, Releases = new List <Release>(), NewRelease = Release.EmptyRelease() }) { }
public void EmptyRelease_ShouldHave_ZeroVersion() { var result = Release.EmptyRelease(); result.Version.Major.Should().Be(0); result.Version.Minor.Should().Be(0); result.Version.Build.Should().Be(0); result.Version.Revision.Should().Be(-1); }
private static Release NewRelease(IEnumerable <Release> releases, bool earlyAccess) { return(releases .FirstOrDefault(r => r.New && (!r.EarlyAccess || earlyAccess)) ?? Release.EmptyRelease()); }
public void EmptyRelease_Should_BeEmpty() { var result = Release.EmptyRelease(); result.Empty().Should().BeTrue(); }