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

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

            StateDefinition[] states = combination.GetStates();

            Assert.That(combination.MatchesStates(states), Is.True);
        }
예제 #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);
        }