Esempio 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();
        }
Esempio 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();
        }
Esempio n. 3
0
        public void Equals_DifferentType_False()
        {
            var sut = new ConControls.Controls.KeyCombination(VirtualKey.A);

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