Exemple #1
0
        public void MatchesStates_StatefulAndWithoutDemandedStates()
        {
            StateCombination       combination = _testHelper.GetStateCombinationForDeliveredAndUnpaidOrder();
            List <StateDefinition> states      = CreateEmptyStateList();

            Assert.That(combination.MatchesStates(states), Is.False);
        }
Exemple #2
0
        public void MatchesStates_DeliveredAndUnpaid()
        {
            StateCombination combination = _testHelper.GetStateCombinationForDeliveredAndUnpaidOrder();

            StateDefinition[] states = combination.GetStates();

            Assert.That(combination.MatchesStates(states), Is.True);
        }
Exemple #3
0
        public void MatchesStates_StatefulWithWildcard()
        {
            StateCombination combination = _testHelper.GetStateCombinationForDeliveredAndUnpaidOrder();

            StateDefinition[] states = combination.GetStates();

            Assert.Fail("TODO: Implement");
            Assert.That(combination.MatchesStates(states), Is.True);
        }