Exemple #1
0
 public void ShouldThrow_WhenDependsModuleNotImplementModule()
 {
     Assert.Throws <ModuleInitializeException>(() => ModuleExtensions.GetModulesRecursively(typeof(FailModule)));
 }
Exemple #2
0
        public void ShouldAddUniqueModules_WhenModulesReferenceDuplicate()
        {
            var modulesList = ModuleExtensions.GetModulesRecursively(typeof(ModuleWithDupes));

            Assert.Equal(3, modulesList.Length);
        }