mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-16 07:12:27 +02:00
Only works on KDE Linux right now until I compile the natives. I'll ship libswnfd when I got it compiled for all platforms.
21 lines
464 B
C#
21 lines
464 B
C#
using NUnit.Framework;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Robust.UnitTesting.Shared.Utility
|
|
{
|
|
[Parallelizable(ParallelScope.All)]
|
|
[TestFixture]
|
|
public sealed class MarshalHelper_Test
|
|
{
|
|
public unsafe void FindNullTerminatorTest()
|
|
{
|
|
var data = stackalloc byte[]
|
|
{
|
|
1, 2, 3, 0
|
|
};
|
|
|
|
Assert.That(MarshalHelper.FindNullTerminator(data), Is.EqualTo(3));
|
|
}
|
|
}
|
|
}
|