public void NonEmptyStackVector_Then_CountCheck() { var sut = new StackVector <MyStruct>(2, 2); sut.Count.Should().Be(2); sut.Should().HaveCount(2); sut.ToArray().Should().HaveCount(2); sut.Memory.Length.Should().Be(2); }
public void EmptyStackVector() { var sut = new StackVector <MyStruct>(2); sut.Count.Should().Be(0); sut.Should().HaveCount(0); sut.ToArray().Should().HaveCount(0); sut.Memory.Length.Should().Be(0); }