public void WhenAfterErrorPeekOperationHappensSuccessfulPeekOperationSystemSetSuccessLastStatus() { BoundedStack <double> stack = null; "Given there is a empty bounded stack with last peek error status" .x(() => { stack = new BoundedStack <double>(); stack.Initialize(); // peek operation for empty stack set error status stack.Peek(); }); "When some item has been pushed" .x(() => { stack.Push(2); }); "And peek operation happens again" .x(() => { stack.Peek(); }); "Then last peek operation status should be 'OK'" .x(() => { var status = stack.GetPeekStatus(); status.Should().Be(OpResult.OK); }); }