public void AfterConstructor_Colors_ShouldHaveFourItems()
        {
            WildColorViewModel target = new WildColorViewModel();

            Assert.AreEqual(4, target.Colors.Count);

            return;
        }
        public void AfterConstructor_SelectedColor_ShouldBeNull()
        {
            WildColorViewModel target = new WildColorViewModel();

            Assert.IsNull(target.SelectedColor);

            return;
        }
        public void AfterConstructor_Colors_ShouldNotBeNull()
        {
            WildColorViewModel target = new WildColorViewModel();

            Assert.IsNotNull(target.Colors);

            return;
        }
        public void Constructor_ShouldNotThrow()
        {
            WildColorViewModel target = new WildColorViewModel();

            Assert.IsNotNull(target);

            return;
        }
        public WildColorWindow()
        {
            this.InitializeComponent();

            if (!DesignerProperties.GetIsInDesignMode(this))
            {
                this.viewModel       = new WildColorViewModel();
                this.DataContext     = this.viewModel;
                this.buttonOk.Click += new RoutedEventHandler(this.ButtonOk_Click);
            }
        }
        public WildColorDialog()
        {
            this.InitializeComponent();

            if (!DesignMode.DesignModeEnabled)
            {
                this.viewModel   = new WildColorViewModel();
                this.DataContext = this.viewModel;

                this.PrimaryButtonClick              += this.ContentDialog_PrimaryButtonClick;
                this.SecondaryButtonClick            += this.ContentDialog_SecondaryButtonClick;
                this.listWildColors.SelectionChanged += this.ListWildColors_SelectionChanged;
                this.IsPrimaryButtonEnabled           = false;
            }
        }