mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
Switch to using built in source link feature (#6297)
* 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>
This commit is contained in:
18
test/Core.Test/Utilities/AssemblyHelpersTests.cs
Normal file
18
test/Core.Test/Utilities/AssemblyHelpersTests.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user