Exemplo n.º 1
0
        public void Equals_DifferentCtrl_False()
        {
            var sut1 = new ConControls.Controls.KeyCombination(VirtualKey.A);
            var sut2 = sut1.WithCtrl();

            sut1.Equals((object)sut2).Should().BeFalse();
            sut1.Equals(sut2).Should().BeFalse();
            (sut1 == sut2).Should().BeFalse();
            (sut1 != sut2).Should().BeTrue();
        }
Exemplo n.º 2
0
        public void WithCtrl_Set()
        {
            var sut = new ConControls.Controls.KeyCombination(VirtualKey.Tab);

            sut.Alt.Should().BeFalse();
            sut.Ctrl.Should().BeFalse();
            sut.Shift.Should().BeFalse();
            sut = sut.WithCtrl();
            sut.Alt.Should().BeFalse();
            sut.Ctrl.Should().BeTrue();
            sut.Shift.Should().BeFalse();
        }