Ejemplo n.º 1
0
        public void WithIgnorableContractsTest()
        {
            ContractHeuristic heuristic = new ContractHeuristic();
            Type type = typeof(ImplementsClonable);
            Type[] contracts = type.GetInterfaces();

            bool selectable = heuristic.IsSelectable(contracts[0]);
            Assert.That(selectable, Is.False);
        }
Ejemplo n.º 2
0
        public void WithContractsTest()
        {
            ContractHeuristic heuristic = new ContractHeuristic();
            Type type = typeof(DependencyContractImpl);
            Type[] contracts = type.GetInterfaces();

            bool selectable = heuristic.IsSelectable(contracts[0]);
            Assert.That(selectable, Is.True);
        }