public void SetsIsUpdatedToFalse() { var settings = new ViewSettings { IsUpdated = true }; using (var vm = new UpdateViewModel(settings)) { vm.ChangelogShown(); } Assert.False(settings.IsUpdated); }
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); }