Пример #1
0
        public void ResetValueCommand_Test()
        {
            var target = new SideOffset();

            target.TrySetParentOffset(50);
            target.Offset = 30;

            target.ResetOffset();

            Assert.AreEqual(50, target.Offset);
            Assert.IsFalse(target.HasOwnValue);
        }
Пример #2
0
 internal void TrySetParentOffset(int offset)
 {
     _model.TrySetParentOffset(offset);
     OnPropertyChanged(nameof(Offset));
     OnPropertyChanged(nameof(HasOwnValue));
 }