Skip to content

Commit

Permalink
test(beta): test beta version always smaller than released one
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Jun 1, 2024
1 parent 7025d81 commit a827eca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions SoundSwitch.Tests/VersionTest.cs
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit a827eca

Please sign in to comment.