Skip to content

Commit 47fc252

Browse files
committed
test: 提高 HexConverter 代码覆盖率
1 parent 417d179 commit 47fc252

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/UnitTestTcpSocket/HexConverterTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ public void ToHexString_Ok()
3131
var actual = HexConverter.ToString(data);
3232
Assert.Equal("1A-02-13-04-FE", actual);
3333

34-
actual = HexConverter.ToString(data, " ");
34+
actual = HexConverter.ToString(data, " ", false);
35+
Assert.Equal("1a 02 13 04 fe", actual);
36+
37+
actual = HexConverter.ToString(data, " ", true);
3538
Assert.Equal("1A 02 13 04 FE", actual);
3639
}
3740

0 commit comments

Comments
 (0)