Ejemplo n.º 1
0
        public void Equals_DifferentShift_False()
        {
            var sut1 = new ConControls.Controls.KeyCombination(VirtualKey.A);
            var sut2 = sut1.WithShift();

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

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