modified layout (#2)
Reviewed-on: #2 Co-authored-by: Aleksandr Neychev <alexnejchev73@gmail.com>
This commit was merged in pull request #2.
This commit is contained in:
@@ -137,10 +137,6 @@ public sealed class AppSettingsTests
|
||||
bool flag => !flag,
|
||||
Color color => Color.FromArgb((byte)(color.R + 1), color.G, color.B),
|
||||
Enum value => NextEnumValue(value),
|
||||
DateTimeOffset moment => moment.AddDays(1),
|
||||
|
||||
// A setting never set yet: the app has not checked for updates once
|
||||
null when property.PropertyType == typeof(DateTimeOffset?) => DateTimeOffset.UnixEpoch,
|
||||
|
||||
_ => throw new NotSupportedException($"Unknown kind of setting: {property.PropertyType}"),
|
||||
};
|
||||
|
||||
@@ -29,10 +29,4 @@ public sealed class UpdateOptionsTests
|
||||
Assert.Equal("git.example.com", options.ServiceUri.Host);
|
||||
Assert.Equal("team/app", options.Project);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void The_app_asks_about_releases_no_more_than_once_a_day()
|
||||
{
|
||||
Assert.Equal(TimeSpan.FromDays(1), new UpdateOptions().CheckInterval);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user