public void FuncStackTest() { var sut = new FuncStack(); sut.Should().NotBeNull(); sut.Stack.Should().NotBeNull(); sut.Stack.Should().BeEmpty(); }
public void PopTest() { var sut = new FuncStack(); sut.Should().NotBeNull(); sut.Push(5.AsFun()); // assume push works sut.Pop(); sut.Stack.Should().BeEmpty(); }
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(); }