예제 #1
0
            public void SetsIsUpdatedToFalse()
            {
                var settings = new ViewSettings {
                    IsUpdated = true
                };

                using (var vm = new UpdateViewModel(settings))
                {
                    vm.ChangelogShown();
                }

                Assert.False(settings.IsUpdated);
            }
예제 #2
0
            public void DisabledChangelogIfRequested()
            {
                var settings = new ViewSettings {
                    IsUpdated = true, EnableChangelog = true
                };

                using (var vm = new UpdateViewModel(settings)
                {
                    DisableChangelog = true
                })
                {
                    vm.ChangelogShown();
                }

                Assert.False(settings.EnableChangelog);
            }