mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-21 04:17:57 +08:00
33 lines
715 B
C#
33 lines
715 B
C#
namespace UglyToad.PdfPig.Tests.Util
|
|
{
|
|
using PdfPig.Util;
|
|
using Xunit;
|
|
|
|
public class OtherEncodingsTests
|
|
{
|
|
[Fact]
|
|
public void BytesNullReturnsNullString()
|
|
{
|
|
var result = OtherEncodings.BytesAsLatin1String(null);
|
|
|
|
Assert.Null(result);
|
|
}
|
|
|
|
[Fact]
|
|
public void BytesEmptyReturnsEmptyString()
|
|
{
|
|
var result = OtherEncodings.BytesAsLatin1String(new byte[0]);
|
|
|
|
Assert.Equal(string.Empty, result);
|
|
}
|
|
|
|
[Fact]
|
|
public void StringNullReturnsNullBytes()
|
|
{
|
|
var result = OtherEncodings.StringAsLatin1Bytes(null);
|
|
|
|
Assert.Null(result);
|
|
}
|
|
}
|
|
}
|