C# Class Orc.Tests.TaskCollectionExtensionTest

Mostrar archivo Open project: Orcomp/Orcomp

Public Methods

Method Description
WillBreachMinLevel_ConsumingTasksWithEndValueEqualToMinLevel_ReturnsFalse ( ) : void
WillBreachMinLevel_ConsumingTasksWithEndValueLessThanMinLevel_ReturnsTrue ( ) : void

Private Methods

Method Description
Collapse_NoTasksInCollectionWhenExecuted_ReturnsEmptyList ( ) : void
Collapse_TaskCollection2_ReturnsCorrectEnumerable ( ) : void
Collapse_TaskCollection_A_ReturnsCorrectEnumerable ( ) : void
Collapse_TaskCollection_ReturnsCorrectEnumerable ( ) : void
Collapse_ThreeTasksWithEndTimeOfOneEqualToStartTimeOfOtherReverseOrder_ReturnsThreeItem ( ) : void
Collapse_ThreeTasksWithEndTimeOfOneEqualToStartTimeOfOther_ReturnsThreeItem ( ) : void
Collapse_TwoTasksWithOverlappingDateRange_ReturnsThreeItems ( ) : void
Collapse_TwoTasksWithSameDateRangeOneProducingOneConsumingWithSameQuantity_ReturnsOneItem ( ) : void
Collapse_TwoTasksWithSameDateRange_ReturnsOneItem ( ) : void
Collapse_TwoTasksWithoutOverlappingDateRange_ReturnsTwoItems ( ) : void
GetQuantity_MultipleTasksBothProduceAndConsumeWhenExecuted_ReturnsTotalOverallQuantity ( ) : void
GetQuantity_MultipleTasksBothProduceAndConsumeWithStaggeredTimesButNotStartedWhenExecuted_ReturnsZeroQuantity ( ) : void
GetQuantity_MultipleTasksBothProduceAndConsumeWithStaggeredTimesWhenExecuted_ReturnsTotalOverallQuantity ( ) : void
GetQuantity_MultipleTasksTypeProduceWhenExecuted_ReturnsTotalQuantityProduced ( ) : void
GetQuantity_NoTasksInCollectionWhenExecuted_ReturnsZeroQuantity ( ) : void
GetQuantity_SingleTaskInCollectionWhenExecuted_ReturnsQuantity ( ) : void
TryToMakeTasksComply_IfImpossible_ReturnsNull ( ) : void
TryToMakeTasksComply_MixedData_ReturnsCorrectCollection ( ) : void
TryToMakeTasksComply_MixedData_ReturnsCorrectCollection2 ( ) : void
TryToMakeTasksComply_MixedData_ReturnsCorrectCollection3 ( ) : void
TryToMakeTasksComply_MixedData_ReturnsCorrectCollection4 ( ) : void
TryToMakeTasksComply_MixedData_ReturnsCorrectCollection5 ( ) : void
TryToMakeTasksComply_MixedData_ReturnsCorrectCollection6 ( ) : void
TryToMakeTasksComply_WillGoAboveMaxValue_ReturnsCorrectCollection ( ) : void
TryToMakeTasksComply_WillGoAboveMaxValue_ReturnsCorrectCollection2 ( ) : void
TryToMakeTasksComply_WillGoAboveMaxValue_ReturnsCorrectCollection3 ( ) : void
TryToMakeTasksComply_WillGoBelowMinValue_ReturnsCorrectCollection ( ) : void
TryToMakeTasksComply_WillGoBelowMinValue_ReturnsCorrectCollection2 ( ) : void
WillBreachMaxLevel_ConsumingTasksWithInitialValueEqualToMaxLevel_ReturnsFalse ( ) : void
WillBreachMaxLevel_ProducingTasksWithEndValueEqualToMaxLevel_ReturnsFalse ( ) : void
WillBreachMaxLevel_ProducingTasksWithEndValueGreaterThanMaxLevel_ReturnsTrue ( ) : void
WillBreachMinLevel_ProducingTasksWithInitialValueEqualToMinLevel_ReturnsFalse ( ) : void
WillStayWithinRange_InitialValueAboveMaxLevel_ReturnsException ( ) : void
WillStayWithinRange_InitialValueBelowMinLevel_ReturnsException ( ) : void
WillStayWithinRange_InitialValueOnMaxValueEndValueBelowMinLevel_ReturnsFalse ( ) : void
WillStayWithinRange_InitialValueOnMinLevelEndValueOnMaxValue_ReturnsTrue ( ) : void
WillStayWithinRange_InitialValueOnMinLevelEndValueOverMaxValue_ReturnsFalse ( ) : void

Method Details

WillBreachMinLevel_ConsumingTasksWithEndValueEqualToMinLevel_ReturnsFalse() public method

WillBreachMinLevel_ConsumingTasksWithEndValueLessThanMinLevel_ReturnsTrue() public method