Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Add another test for InstanceIdFromComputerName
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges authored Oct 25, 2022
1 parent e77734a commit dc66f18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ApiService/Tests/InstanceIdTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public void CanParseBase36Correctly(string input, long result) {
Assert.Equal(result, InstanceIds.ReadNumberInBase(input, InstanceIds.Base36));
}

[Fact]
public void CanExtractInstanceIdFromComputerName() {
// pulled from actual example
Assert.Equal("1244", InstanceIds.InstanceIdFromComputerName("node0000YK"));
}

[Fact]
public void Base36HasCorrectNumberOfEntries() {
Assert.Equal(36, InstanceIds.Base36.Length);
Expand Down

0 comments on commit dc66f18

Please sign in to comment.