예제 #1
0
        public void Inject_PluggablePart_PartsImported()
        {
            var pluggablePart = new PluggablePart();

            PluginHost.Inject(pluggablePart);

            Assert.NotNull(pluggablePart.FakeParts);
            Assert.NotEmpty(pluggablePart.FakeParts);
        }
예제 #2
0
        public void Inject_PluggablePartWithFilterableImports_PartImported(string fakeId)
        {
            var pluggablePart = new PluggablePartWithFilterableImports();

            PluginHost.Inject(pluggablePart, new Guid(fakeId));
        }