Files
PdfPig/src/UglyToad.PdfPig.Tests/Util/OtherEncodingsTests.cs
2018-01-10 19:49:32 +00:00

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);
}
}
}