Files
MonoGame.Extended/tests/MonoGame.Extended.Entities.Tests/BitArrayExtensionsTests.cs
T
2024-05-18 20:01:37 -04:00

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