Advertisement
cepxuozab

SatisfactionExpr

Feb 20th, 2024
807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. void TestExpr() {
  2.         Student p("ivan"s, 37);
  3.         SatisfactionSupervisor sup{103, 107};
  4.         p.SetObserver(&sup);
  5.        ASSERT_EQUAL(p.GetDanceCount(), 0);
  6.         ASSERT_EQUAL(p.GetSatisfaction(), 100);
  7.         p.Dance();
  8.         ASSERT_EQUAL(p.GetDanceCount(), 1);
  9.         ASSERT_EQUAL(p.GetSatisfaction(), 101);
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement