Exemplo n.º 1
0
        public void When_StateTrigger()
        {
            var SUT = new Binding_StateTrigger();

            Assert.IsNull(SUT._StringField.Text);

            SUT.ForceLoaded();

            SUT.MyState = MyState.Full;

            Assert.AreEqual("Updated!", SUT._StringField.Text);
        }
Exemplo n.º 2
0
        public void When_StateTrigger()
        {
            var SUT = new Binding_StateTrigger();

            Assert.AreEqual(string.Empty, SUT._StringField.Text);
            Assert.IsFalse(SUT.myTrigger.IsActive);

            SUT.ForceLoaded();

            SUT.MyState = MyState.Full;

            Assert.IsTrue(SUT.myTrigger.IsActive);
            Assert.AreEqual("Updated!", SUT._StringField.Text);
        }