mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 14:13:18 +08:00
19 lines
403 B
C#
19 lines
403 B
C#
|
|
using Bit.Core.Utilities;
|
|||
|
|
using Xunit;
|
|||
|
|
|
|||
|
|
namespace Bit.Core.Test.Utilities;
|
|||
|
|
|
|||
|
|
public class AssemblyHelpersTests
|
|||
|
|
{
|
|||
|
|
[Fact]
|
|||
|
|
public void ReturnsValidVersionAndGitHash()
|
|||
|
|
{
|
|||
|
|
var version = AssemblyHelpers.GetVersion();
|
|||
|
|
_ = Version.Parse(version);
|
|||
|
|
|
|||
|
|
var gitHash = AssemblyHelpers.GetGitHash();
|
|||
|
|
Assert.NotNull(gitHash);
|
|||
|
|
Assert.Equal(8, gitHash.Length);
|
|||
|
|
}
|
|||
|
|
}
|