public void AddExercise_Correctly() { //arrange IUserCollection userCollection = UserCollectionFactory.GetUserCollection(); IUser user = UserFactory.GetUser(); ExerciseDTO legpress = new ExerciseDTO("TempLegpress", userID, ExerciseTypeDTO.Weighted); //act user.AddExercise(legpress); //assert ExerciseDTO legpressDTO = userCollection.GetExercise("TempLegpress"); Assert.AreEqual("TempLegpress", legpressDTO.Name); Assert.AreEqual(ExerciseTypeDTO.Weighted, legpressDTO.ExerciseType); Assert.AreEqual(userID, legpressDTO.UserID); }