Skip to content

Commit 396614c

Browse files
committed
add ftmsuuid tests
1 parent aa42771 commit 396614c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

FTMS.NET.Tests/FtmsUuids.Tests.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
namespace FTMS.NET.Tests;
2+
23
using System;
34

45
public class FtmsUuids_Tests
@@ -43,4 +44,19 @@ public void FtmsUuids_GetName_ReturnsCorrectName(Guid uuid, string nameOfUuid)
4344
var name = FtmsUuids.GetName(uuid);
4445
Assert.Equal(nameOfUuid, name);
4546
}
47+
48+
[Fact]
49+
public void FtmsUuids_GetName_WithUnknownUuid_ReturnsEmptyString()
50+
{
51+
var unknownUuid = Guid.NewGuid();
52+
var name = FtmsUuids.GetName(unknownUuid);
53+
Assert.Equal(string.Empty, name);
54+
}
55+
56+
[Fact]
57+
public void FtmsUuids_GetName_WithEmptyGuid_ReturnsEmptyString()
58+
{
59+
var name = FtmsUuids.GetName(Guid.Empty);
60+
Assert.Equal(string.Empty, name);
61+
}
4662
}

0 commit comments

Comments
 (0)