コード例 #1
0
        public void FindNoByImplementedInterace()
        {
            var assemblyName = "test3.dll";

            GenerateAssembly(plainType, assemblyName);
            FileAssert.Exists(assemblyName);
            Assert.IsFalse(TypeFinder.ByImplementedInterfaceInDirectory <ICloneable>(".", assemblyName).Any());
        }
コード例 #2
0
        public void FindTypeByImplementedInterface()
        {
            var assemblyName = "test4.dll";

            GenerateAssembly(typeImplementingInterface, assemblyName);
            FileAssert.Exists(assemblyName);
            var types = TypeFinder.ByImplementedInterfaceInDirectory <ICloneable>(".", assemblyName);

            Assert.IsTrue(types.Any());
        }