mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-20 16:21:46 +08:00
17 lines
375 B
C#
17 lines
375 B
C#
using NUnit.Framework;
|
|
|
|
namespace System
|
|
{
|
|
[TestFixture]
|
|
public class ByteArrayTest
|
|
{
|
|
[Test]
|
|
public void ByteArrayTestMethod()
|
|
{
|
|
var values = new byte[] { 0xff };
|
|
var sbytes = values.ToSByteArray();
|
|
var bytes = sbytes.ToByteArray();
|
|
Assert.IsTrue(bytes[0] == values[0]);
|
|
}
|
|
}
|
|
} |