Пример #1
0
        public void When_Coerce_Default()
        {
            var SUT = new BinderLocalCache_Data_IsEnabled();

            Assert.AreEqual(true, SUT.IsEnabled);

            SUT.SetValue(BinderLocalCache_Data_IsEnabled.IsEnabledProperty, false);
            Assert.AreEqual(false, SUT.IsEnabled);
        }
Пример #2
0
        public void When_Coerce_And_Coerce_False()
        {
            var SUT = new BinderLocalCache_Data_IsEnabled();

            Assert.AreEqual(true, SUT.IsEnabled);

            SUT.SuppressIsEnabled(true);

            Assert.AreEqual(false, SUT.IsEnabled);

            SUT.SuppressIsEnabled(false);

            Assert.AreEqual(true, SUT.IsEnabled);
        }