Exemplo 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();
        }
Exemplo n.º 2
0
        public void Equals_Equal_True()
        {
            var sut1 = new ConControls.Controls.KeyCombination(VirtualKey.A, true, true, true);
            var sut2 = new ConControls.Controls.KeyCombination(VirtualKey.A, true, true, true);

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

            sut.Equals(new object()).Should().BeFalse();
        }