예제 #1
0
        internal bool CanHandle(
            [PexAssumeUnderTest] ROUniqueCombinations target,
            Type resultOperatorType
            )
        {
            bool result = target.CanHandle(resultOperatorType);

            Assert.AreEqual(resultOperatorType == typeof(PairWiseAllResultOperator), result, "bad return from CanHandle");

            return(result);
        }
예제 #2
0
        internal bool CanHandle(
            [PexAssumeUnderTest] ROUniqueCombinations target,
            Type resultOperatorType
            )
        {
            bool result = target.CanHandle(resultOperatorType);

            if (resultOperatorType == typeof(UniqueCombinationsResultOperator))
            {
                Assert.IsTrue(result, "Should be good to go!");
            }
            else
            {
                Assert.IsFalse(result, "Bad input type - should not have taken it!");
            }

            return(result);
        }