mirror of
https://github.com/bitwarden/server
synced 2025-12-10 13:23:27 +00:00
* Switch to using built in source link feature * Switch to using types assembly * Formatting * Make version retrieval safer * Add debug message * Apply suggestions from code review Co-authored-by: Matt Bishop <mbishop@bitwarden.com> --------- Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
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);
|
|
}
|
|
}
|