コード例 #1
0
        public void TestIsMouseOver()
        {
            var trigger = TriggerDefs.IsMouseOver(UIExt.Setter());

            trigger.Property.Should().Be(UIElement.IsMouseOverProperty);
            trigger.Value.Should().Be(true);
            trigger.Setters.Count.Should().Be(1);
        }
コード例 #2
0
        public void TestIsDisabled()
        {
            var trigger = TriggerDefs.IsDisabled(UIExt.Setter());

            trigger.Property.Should().Be(UIElement.IsEnabledProperty);
            trigger.Value.Should().Be(false);
            trigger.Setters.Count.Should().Be(1);
        }
コード例 #3
0
        public void TestIsPressed()
        {
            var trigger = TriggerDefs.IsPressed(UIExt.Setter());

            trigger.Property.Should().Be(ButtonBase.IsPressedProperty);
            trigger.Value.Should().Be(true);
            trigger.Setters.Count.Should().Be(1);
        }