Пример #1
0
        private ProjectRootImageProjectTreePropertiesProvider CreateInstance(IProjectCapabilitiesService capabilities, IProjectImageProvider imageProvider)
        {
            capabilities  = capabilities ?? IProjectCapabilitiesServiceFactory.Create();
            imageProvider = imageProvider ?? IProjectImageProviderFactory.Create();

            return(new ProjectRootImageProjectTreePropertiesProvider(capabilities, imageProvider));
        }
        public void Constructor_NullAsImageProvider_ThrowsArgumentNull()
        {
            var capabilities = IProjectCapabilitiesServiceFactory.Create();

            Assert.Throws <ArgumentNullException>("imageProvider", () => {
                new ProjectRootImageProjectTreePropertiesProvider(capabilities, (IProjectImageProvider)null);
            });
        }