コード例 #1
0
        public void PluginDiscoveredTest()
        {
            var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var discoveredPlugins = _pluginFinder.DiscoverPlugins(path);

            Assert.NotNull(discoveredPlugins);
            Assert.IsNotEmpty(discoveredPlugins);
            Assert.True(discoveredPlugins.Any(p => p.GetType() == typeof(PluginLoaderTestsExamplePlugin)));
        }