コード例 #1
0
        public void EditValueWithNoFormsServiceThrows()
        {
            MockVSHierarchy     root            = new MockVSHierarchy();
            MockVsSolution      solution        = new MockVsSolution(root);
            MockServiceProvider serviceProvider = new MockServiceProvider();

            serviceProvider.AddService(typeof(IVsSolution), solution);
            MockTypeDescriptorContext context = new MockTypeDescriptorContext(serviceProvider);
            string          value             = "Project1.txt";
            MockVSHierarchy project           = new MockVSHierarchy(value);

            root.AddProject(project);
            SolutionPickerEditor target = new SolutionPickerEditor();

            target.EditValue(serviceProvider, null);
        }
コード例 #2
0
        public void ThrowsIfPaintValueArgumentIsNull()
        {
            SolutionPickerEditor target = new SolutionPickerEditor();

            target.PaintValue(null);
        }