public void IsTrueIfUpdatedAndOptedIn() { var settings = new ViewSettings { IsUpdated = true, EnableChangelog = true }; var vm = new UpdateViewModel(settings); Assert.True(vm.ShowChangelog); }
public void IsFalseIfUpdatedButOptedOut() { var settings = new ViewSettings { IsUpdated = true, EnableChangelog = false }; var vm = new UpdateViewModel(settings); Assert.False(vm.ShowChangelog); }
public void IsFalseIfNotUpdated() { var settings = new ViewSettings { IsUpdated = false }; var vm = new UpdateViewModel(settings); Assert.False(vm.ShowChangelog); }
public void SetsIsUpdatedToFalse() { var settings = new ViewSettings { IsUpdated = true }; var vm = new UpdateViewModel(settings); vm.ChangelogShown(); Assert.False(settings.IsUpdated); }
public void DisabledChangelogIfRequested() { var settings = new ViewSettings { IsUpdated = true, EnableChangelog = true }; var vm = new UpdateViewModel(settings) { DisableChangelog = true }; vm.ChangelogShown(); Assert.False(settings.EnableChangelog); }
public void SetsIsUpdatedToFalse() { var settings = new ViewSettings { IsUpdated = true }; using (var vm = new UpdateViewModel(settings)) { vm.DismissUpdateNotification(); } Assert.False(settings.IsUpdated); }