Fonctions
Référence du fichier tests.cpp
#include "LinkedList.h"
#include <assert.h>
#include <iostream>

Fonctions

void GivenNothingInList_WhenSizeCalled_Returns0 ()
 
void GivenNothingInList_WhenAddNodeAtPlace0_ReturnsTrue ()
 
void GivenOneNodeInList_WhenAddNodeIndexLargerThanListSize_ThenNodeAddedToEndOfList ()
 
void GivenThreeNodesInList_WhenSizeCalled_Returns3 ()
 
void GivenNothingInList_WhenUnshiftCalled_ThenListSize1 ()
 
void GivenOneNodeInList_WhenUnshiftCalled_ThenListSize2 ()
 
void GivenOneNodeInList_WhenUnshiftCalled_ThenExistingNodeLast ()
 
void GivenNothingInList_WhenSetIsCalled_ThenReturnsFalse ()
 
void GivenThreeNodesInList_WhenSetIsCalledAtPlace1_ThenSecondNodeIsSet ()
 
void GivenNothingInList_WhenPopIsCalled_ThenReturnsFalse ()
 
void GivenTwoNodesInList_WhenPopIsCalled_ThenReturnsLastNode ()
 
void GivenTwoNodesInList_WhenPopIsCalled_ThenListIsShorter ()
 
void GivenNothingInList_WhenShiftIsCalled_ThenReturnsFalse ()
 
void GivenOneNodeInList_WhenShiftIsCalled_ThenReturnsData ()
 
void GivenOneNodeInList_WhenShiftIsCalled_ThenListEmpty ()
 
void GivenThreeNodesInList_WhenShiftIsCalled_ThenReturnsFirstData ()
 
void GivenThreeNodesInList_WhenShiftIsCalled_ThenListIsShorter ()
 
void GivenNothingInList_WhenRemoveIsCalled_ThenFalseIsReturned ()
 
void GivenThreeNodesInList_WhenRemoveIsCalledAtPlace0_ThenFirstNodeDataIsReturned ()
 
void GivenThreeNodesInList_WhenRemoveIsCalledAtPlace2_ThenLastNodeDataIsReturned ()
 
void GivenThreeNodesInList_WhenRemoveIsCalled_ThenListIsShorter ()
 
void GivenNothingInList_WhenGetIsCalled_ThenReturnsFalse ()
 
void GivenThreeNodesInList_WhenGetIsCalled_ThenReturnsData ()
 
void GivenNothingInList_WhenClearIsCalled_ThenSizeUnchanged ()
 
void GivenThreeInList_WhenClearIsCalled_ThenListEmpty ()
 
int main ()
 

Documentation des fonctions

◆ GivenNothingInList_WhenAddNodeAtPlace0_ReturnsTrue()

void GivenNothingInList_WhenAddNodeAtPlace0_ReturnsTrue ( )

◆ GivenNothingInList_WhenClearIsCalled_ThenSizeUnchanged()

void GivenNothingInList_WhenClearIsCalled_ThenSizeUnchanged ( )

◆ GivenNothingInList_WhenGetIsCalled_ThenReturnsFalse()

void GivenNothingInList_WhenGetIsCalled_ThenReturnsFalse ( )

◆ GivenNothingInList_WhenPopIsCalled_ThenReturnsFalse()

void GivenNothingInList_WhenPopIsCalled_ThenReturnsFalse ( )

◆ GivenNothingInList_WhenRemoveIsCalled_ThenFalseIsReturned()

void GivenNothingInList_WhenRemoveIsCalled_ThenFalseIsReturned ( )

◆ GivenNothingInList_WhenSetIsCalled_ThenReturnsFalse()

void GivenNothingInList_WhenSetIsCalled_ThenReturnsFalse ( )

◆ GivenNothingInList_WhenShiftIsCalled_ThenReturnsFalse()

void GivenNothingInList_WhenShiftIsCalled_ThenReturnsFalse ( )

◆ GivenNothingInList_WhenSizeCalled_Returns0()

void GivenNothingInList_WhenSizeCalled_Returns0 ( )

◆ GivenNothingInList_WhenUnshiftCalled_ThenListSize1()

void GivenNothingInList_WhenUnshiftCalled_ThenListSize1 ( )

◆ GivenOneNodeInList_WhenAddNodeIndexLargerThanListSize_ThenNodeAddedToEndOfList()

void GivenOneNodeInList_WhenAddNodeIndexLargerThanListSize_ThenNodeAddedToEndOfList ( )

◆ GivenOneNodeInList_WhenShiftIsCalled_ThenListEmpty()

void GivenOneNodeInList_WhenShiftIsCalled_ThenListEmpty ( )

◆ GivenOneNodeInList_WhenShiftIsCalled_ThenReturnsData()

void GivenOneNodeInList_WhenShiftIsCalled_ThenReturnsData ( )

◆ GivenOneNodeInList_WhenUnshiftCalled_ThenExistingNodeLast()

void GivenOneNodeInList_WhenUnshiftCalled_ThenExistingNodeLast ( )

◆ GivenOneNodeInList_WhenUnshiftCalled_ThenListSize2()

void GivenOneNodeInList_WhenUnshiftCalled_ThenListSize2 ( )

◆ GivenThreeInList_WhenClearIsCalled_ThenListEmpty()

void GivenThreeInList_WhenClearIsCalled_ThenListEmpty ( )

◆ GivenThreeNodesInList_WhenGetIsCalled_ThenReturnsData()

void GivenThreeNodesInList_WhenGetIsCalled_ThenReturnsData ( )

◆ GivenThreeNodesInList_WhenRemoveIsCalled_ThenListIsShorter()

void GivenThreeNodesInList_WhenRemoveIsCalled_ThenListIsShorter ( )

◆ GivenThreeNodesInList_WhenRemoveIsCalledAtPlace0_ThenFirstNodeDataIsReturned()

void GivenThreeNodesInList_WhenRemoveIsCalledAtPlace0_ThenFirstNodeDataIsReturned ( )

◆ GivenThreeNodesInList_WhenRemoveIsCalledAtPlace2_ThenLastNodeDataIsReturned()

void GivenThreeNodesInList_WhenRemoveIsCalledAtPlace2_ThenLastNodeDataIsReturned ( )

◆ GivenThreeNodesInList_WhenSetIsCalledAtPlace1_ThenSecondNodeIsSet()

void GivenThreeNodesInList_WhenSetIsCalledAtPlace1_ThenSecondNodeIsSet ( )

◆ GivenThreeNodesInList_WhenShiftIsCalled_ThenListIsShorter()

void GivenThreeNodesInList_WhenShiftIsCalled_ThenListIsShorter ( )

◆ GivenThreeNodesInList_WhenShiftIsCalled_ThenReturnsFirstData()

void GivenThreeNodesInList_WhenShiftIsCalled_ThenReturnsFirstData ( )

◆ GivenThreeNodesInList_WhenSizeCalled_Returns3()

void GivenThreeNodesInList_WhenSizeCalled_Returns3 ( )

◆ GivenTwoNodesInList_WhenPopIsCalled_ThenListIsShorter()

void GivenTwoNodesInList_WhenPopIsCalled_ThenListIsShorter ( )

◆ GivenTwoNodesInList_WhenPopIsCalled_ThenReturnsLastNode()

void GivenTwoNodesInList_WhenPopIsCalled_ThenReturnsLastNode ( )

◆ main()

int main ( void  )