public void Select_ThrowsSelectionWhenIsSelected()
        {
            BasicObservableSelectable _selectable = instantiateSelectable();

            _selectable.Select();
            Assert.Throws <Selectable.AlreadySelectedException>(
                () => _selectable.Select());
        }
        public void IsSelected_TrueAfterSelect()
        {
            BasicObservableSelectable _selectable = instantiateSelectable();

            _selectable.Select();
            Assert.True(_selectable.IsSelected);
        }
        public void Deselect_NoObeserverDoesNotThrowException()
        {
            BasicObservableSelectable _selectable = instantiateSelectable();

            _selectable.Select();
            Assert.DoesNotThrow(() => _selectable.Deselect());
        }
        public void IsSelected_FalseAfterDeselect()
        {
            BasicObservableSelectable _selectable = instantiateSelectable();

            _selectable.Select();
            _selectable.Deselect();
            Assert.False(_selectable.IsSelected);
        }
        public void IsSelected_TrueOnInvocationOfOnselected()
        {
            BasicObservableSelectable _selectable = instantiateSelectable();
            bool   isSelected = false;
            Action onSelected = () =>
            {
                isSelected = _selectable.IsSelected;
            };

            _selectable.OnSelection += onSelected;
            _selectable.Select();
            Assert.True(isSelected);
            _selectable.OnSelection -= onSelected;
        }
        public void Select_OnSelectInvoked()
        {
            BasicObservableSelectable _selectable = instantiateSelectable();
            bool   isSelected = false;
            Action onSelected = () =>
            {
                isSelected = true;
            };

            _selectable.OnSelection += onSelected;
            _selectable.Select();
            Assert.True(isSelected);
            _selectable.OnSelection -= onSelected;
        }
        public void IsSelected_FalseAfterInvocationOfOnDeselection()
        {
            BasicObservableSelectable _selectable = instantiateSelectable();
            bool   isSelected   = true;
            Action onDeselected = () =>
            {
                isSelected = _selectable.IsSelected;
            };

            _selectable.OnDeselection += onDeselected;
            _selectable.Select();
            _selectable.Deselect();
            Assert.False(isSelected);
            _selectable.OnDeselection -= onDeselected;
        }