Files
MonoGame.Extended/Source/Tests/MonoGame.Extended.Entities.Tests/BitArrayExtensionsTests.cs
T
2018-06-20 22:02:28 +10: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());
}
}
}