Example #1
0
        public void TestAddinsRegisterAssembler()
        {
            var assemblers = RegisteredAddIn.GetInstancesFromAssembly <IDeNovoAssembler>(
                Assembly.GetExecutingAssembly().CodeBase.Substring(8));

            Assert.AreEqual(1, assemblers.Count);
            Assert.AreEqual(typeof(TestAutomationSequenceAssembler), assemblers[0].GetType());
        }
Example #2
0
        public void TestAddinsSequenceAligners()
        {
            List <ISequenceAligner> expectedAligners = new List <ISequenceAligner>
            {
                new TestAutomationSequenceAligner(),
                new TestAutomationPairwiseSequenceAligner()
            };

            // Gets the registered Instances for the path passed
            IList <ISequenceAligner> actualAligners = RegisteredAddIn.GetInstancesFromAssembly <ISequenceAligner>(
                typeof(TestAutomationSequenceAligner).Assembly.FullName);

            CompareAlignerElements(expectedAligners, actualAligners);
        }
Example #3
0
        public void RegisterAddinsGetInstances()
        {
            CreateAddinsFolder();
            IList <ISequenceAligner> finalValue = new List <ISequenceAligner>();

            finalValue.Add(new TestAutomationSequenceAligner());
            finalValue.Add(new TestAutomationPairwiseSequenceAligner());

            // Gets the registered Instances for the path passed
            string assemblyPath = string.Concat(RegisteredAddIn.AddinFolderPath,
                                                BioTestAutomationDll);
            IList <ISequenceAligner> registeredAligners =
                RegisteredAddIn.GetInstancesFromAssembly <ISequenceAligner>(assemblyPath);

            RegisterAlignGeneralTestCases(registeredAligners, finalValue);
            DeleteAddinsFolder();
        }