Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }