public void CategoryAttribute_ConstructorImplementationsCheck() { var implementations = StateImplementations.GetValues().ToArray(); var categoryAttribute = new CategoryAttribute(Value, implementations); Assert.AreEqual(Value, categoryAttribute.Value); Assert.AreEqual(implementations.Length, categoryAttribute.Implementations.Count); }
public MainWindow() { InitializeComponent(); MainGrid.DataContext = this; TemplateDescriptions = new ObservableCollection <TemplateDescription>(); _browserDialog = new FolderBrowserDialog(); DbSource = "(local)"; _dataFactory = new DataFactory(DbSource); // null dbSource defaults to (local) StateComboBox.ItemsSource = StateImplementations.GetValues(); }