Пример #1
0
        protected override void Arrange()
        {
            base.Arrange();

            var keyDownStates = new NotifyingConcurrentDictionary<KeyValue, KeyDownStates>();
            keyDownStates[KeyValues.MouseMagneticCursorKey] = new NotifyingProxy<KeyDownStates>(KeyDownStates.Up);
            KeyStateService.Setup(s => s.KeyDownStates).Returns(keyDownStates);
        }
        protected override void Arrange()
        {
            base.Arrange();

            KeySelectionProgress = new NotifyingConcurrentDictionary <KeyValue, double>();
            KeySelectionProgress[new KeyValue()] = new NotifyingProxy <double>(123);
            KeyStateService.Setup(s => s.KeySelectionProgress)
            .Returns(KeySelectionProgress);
        }
        protected override void Arrange()
        {
            base.Arrange();

            MainViewModel.SelectionMode = SelectionModes.Key;

            KeyValueToAssert     = new KeyValue();
            KeySelectionProgress = new NotifyingConcurrentDictionary <KeyValue, double>();
            KeySelectionProgress[KeyValueToAssert] = new NotifyingProxy <double>(123);
            KeyStateService.Setup(s => s.KeySelectionProgress)
            .Returns(KeySelectionProgress);
        }