Until 0.1.0-alpha.3 an alpha was "a beta's source built on a prerelease .NET" and every text said so. 0.1.0-alpha.4 runs on .NET 11's release - the betas' own from beta.37 - and the alpha line rests after it. - EULA 1.7 (section 2B), Disclaimer 2.14 (section 0, which also gains the paragraph on Windows and the processor), Alpha notice 1.1 (what an alpha is, the hardware, the pause), the accuracy statement's line and its two copies. The texts were approved with the plan of 2026-11-11. - Shared.AlphaLine: IsPrerelease(the runtime's description) and Rests, stamped from Directory.Build.props' FlAlphaLineRests (true on main since beta.37; set to false on the alpha branch when it tries a newer .NET). App/Services/AlphaTexts picks the banner and About's line from the two facts; a prerelease runtime is said whatever the stamp says. - Strings in en, vi and ja: the banner and About's line no longer say "a prerelease .NET" unconditionally; three new keys. - guide (the alphas are paused: install the beta; a paused alpha's anti-cheat list is not updated; ten betas after alpha.4 hide it from older alphas), LIMITATIONS, 11_UPDATER, 12_BUILD, 08_UI, the wiki. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
53 lines
2.6 KiB
C#
53 lines
2.6 KiB
C#
// SPDX-License-Identifier: GPL-3.0-only
|
|
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
|
|
|
using System.Globalization;
|
|
using FluentAssertions;
|
|
using FrameLedger.App.Services;
|
|
|
|
namespace FrameLedger.App.Tests;
|
|
|
|
/// <summary>
|
|
/// D97 and D98 (2026-11-11): an alpha says "a prerelease .NET" only where its runtime is one, and says that its line is
|
|
/// paused where it was cut while the line rested. Each combination, by the two facts <see cref="AlphaTexts"/> is handed.
|
|
/// </summary>
|
|
public sealed class AlphaTextsTests
|
|
{
|
|
private const string _release = ".NET 11.0.0";
|
|
private const string _candidate = ".NET 11.0.0-rc.3.26522.148";
|
|
|
|
private static string Of(string format, string runtime) => string.Format(CultureInfo.CurrentCulture, format, runtime);
|
|
|
|
[Fact]
|
|
public void AnAlphaOnAReleasedRuntimeWhoseLineStillTriesItNamesTheRuntimeAndNoPrerelease() =>
|
|
AlphaTexts.BannerBody(rests: false, _release).Should().Be(Of(Strings.Alpha_Banner_Body_Format, _release));
|
|
|
|
[Fact]
|
|
public void AnAlphaCutWhileTheLineRestsSaysItIsPausedAndToInstallTheBeta() =>
|
|
AlphaTexts.BannerBody(rests: true, _release).Should().Be(Of(Strings.Alpha_Banner_Body_Resting_Format, _release));
|
|
|
|
[Theory]
|
|
[InlineData(false)]
|
|
[InlineData(true)]
|
|
public void APrereleaseRuntimeIsSaidWhateverTheStampSays(bool rests) =>
|
|
AlphaTexts.BannerBody(rests, _candidate).Should().Be(Of(Strings.Alpha_Banner_Body_Prerelease_Format, _candidate),
|
|
"a line that tries a prerelease is not resting, and the runtime is what the process sees for itself");
|
|
|
|
[Fact]
|
|
public void TheThreeBannersAreThreeTexts() =>
|
|
new[] { Strings.Alpha_Banner_Body_Format, Strings.Alpha_Banner_Body_Prerelease_Format, Strings.Alpha_Banner_Body_Resting_Format }
|
|
.Should().OnlyHaveUniqueItems().And.OnlyContain(static f => f.Contains("{0}", StringComparison.Ordinal));
|
|
|
|
[Fact]
|
|
public void AboutNamesTheRuntimeForABeta() =>
|
|
AlphaTexts.AboutRuntime(alpha: false, _release).Should().Be(Of(Strings.About_Runtime_Format, _release));
|
|
|
|
[Fact]
|
|
public void AboutSaysAlphaAndPrereleaseOnlyWhereTheRuntimeIsOne()
|
|
{
|
|
AlphaTexts.AboutRuntime(alpha: true, _release).Should().Be(Of(Strings.About_Runtime_Alpha_Format, _release));
|
|
AlphaTexts.AboutRuntime(alpha: true, _candidate).Should().Be(Of(Strings.About_Runtime_Alpha_Prerelease_Format, _candidate));
|
|
AlphaTexts.AboutRuntime(alpha: false, _candidate).Should().Be(Of(Strings.About_Runtime_Format, _candidate), "a beta never runs on one, and says nothing more if it did");
|
|
}
|
|
}
|