Esempio n. 1
0
 public AppUpdate(AppUpdates appUpdates) : this(
         new InternalState
 {
     AppUpdates = appUpdates,
     Releases = new List <Release>(),
     NewRelease = Release.EmptyRelease()
 })
 {
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 private static Release NewRelease(IEnumerable <Release> releases, bool earlyAccess)
 {
     return(releases
            .FirstOrDefault(r => r.New && (!r.EarlyAccess || earlyAccess))
            ?? Release.EmptyRelease());
 }
Esempio n. 4
0
        public void EmptyRelease_Should_BeEmpty()
        {
            var result = Release.EmptyRelease();

            result.Empty().Should().BeTrue();
        }