public void UserAddUserMoneyTestBad() { ////RestartSystem(); UserId = SetupUser1(); const int amountToChange = -10000; int prevAmount = UserBridge.GetUserMoney(UserId); Assert.False(UserBridge.AddUserMoney(UserId, amountToChange)); Assert.True(prevAmount == UserBridge.GetUserMoney(UserId)); UserBridge.DeleteUser(UserId); }
public void UserAddUserMoneyTestGood() { UserId = SetupUser1(); const int amountToChange = 100; int prevAmount = UserBridge.GetUserMoney(UserId); Assert.True(UserBridge.AddUserMoney(UserId, amountToChange)); Assert.True(prevAmount == UserBridge.GetUserMoney(UserId) - amountToChange); UserBridge.DeleteUser(UserId); }