예제 #1
0
        public void FuncStackTest()
        {
            var sut = new FuncStack();

            sut.Should().NotBeNull();
            sut.Stack.Should().NotBeNull();
            sut.Stack.Should().BeEmpty();
        }
예제 #2
0
        public void PopTest()
        {
            var sut = new FuncStack();

            sut.Should().NotBeNull();
            sut.Push(5.AsFun()); // assume push works
            sut.Pop();
            sut.Stack.Should().BeEmpty();
        }
예제 #3
0
        public void PushTest()
        {
            var sut = new FuncStack();

            sut.Should().NotBeNull();
            sut.Stack.Should().NotBeNull();
            sut.Stack.Should().BeEmpty();
            sut.Push(5.AsFun());
            sut.Stack.Should().NotBeEmpty();
        }