Example #1
0
        public void Equals_DifferentAlt_False()
        {
            var sut1 = new ConControls.Controls.KeyCombination(VirtualKey.A);
            var sut2 = sut1.WithAlt();

            sut1.Equals((object)sut2).Should().BeFalse();
            sut1.Equals(sut2).Should().BeFalse();
            (sut1 == sut2).Should().BeFalse();
            (sut1 != sut2).Should().BeTrue();
        }
Example #2
0
        public void WithAlt_Set()
        {
            var sut = new ConControls.Controls.KeyCombination(VirtualKey.Tab);

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