mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-15 23:19:29 +00:00
20 lines
538 B
C#
20 lines
538 B
C#
using System.Collections;
|
|
using Xunit;
|
|
|
|
namespace MonoGame.Extended.Entities.Tests
|
|
{
|
|
public class BitArrayExtensionsTests
|
|
{
|
|
[Fact]
|
|
public void BitArrayIsEmpty()
|
|
{
|
|
Assert.True(new BitArray(1).IsEmpty());
|
|
Assert.False(new BitArray(new[] { true }).IsEmpty());
|
|
Assert.True(new BitArray(new[] { false }).IsEmpty());
|
|
|
|
var bitArray = new BitArray(new[] { true });
|
|
bitArray.Set(0, false);
|
|
Assert.True(bitArray.IsEmpty());
|
|
}
|
|
}
|
|
} |