From a827eca87ec262fa161bc4c4c341d7bdc7031ce4 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo <197810+Belphemur@users.noreply.github.com> Date: Sat, 1 Jun 2024 15:53:32 -0400 Subject: [PATCH] test(beta): test beta version always smaller than released one --- SoundSwitch.Tests/VersionTest.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 SoundSwitch.Tests/VersionTest.cs diff --git a/SoundSwitch.Tests/VersionTest.cs b/SoundSwitch.Tests/VersionTest.cs new file mode 100644 index 0000000000..5a2b1badc7 --- /dev/null +++ b/SoundSwitch.Tests/VersionTest.cs @@ -0,0 +1,16 @@ +using FluentAssertions; +using NuGet.Versioning; +using NUnit.Framework; + +namespace SoundSwitch.Tests; +[TestFixture] +public class VersionTest +{ + [Test] + public void TestSemanticVersionBetaSmallerThanRelease() + { + var beta = SemanticVersion.Parse("1.0.0-beta.1"); + var release = SemanticVersion.Parse("1.0.0"); + beta.Should().BeLessThan(release); + } +} \ No newline at end of file