public void BuildTimer_NullWorkoutSupplied_ThrowsArgumentNullException() { // Arrange var workoutTimer = new WorkoutTimer(); var workout = new Workout(); // Act & Assert - Assert.Throws <ArgumentNullException>(() => workoutTimer.BuildTimer(workout)); }
public MainVM() { Exercises = new ObservableCollection <Exercise>(); Workouts = new ObservableCollection <Workout>(); CustomWorkout = new Workout(); Timer = new WorkoutTimer(); // Subscribe to the Event Timer.WorkoutFinished += OnWorkoutFinished; _rng = new Random(); _config = Configuration.GetConfig(); InstantiateCommands(); ReadExercises(); ReadWorkouts(); }