| 24 | Assert::IsTrue(q.Empty()); |
| 25 | } |
| 26 | TEST_METHOD(MaxAddToBack) |
| 27 | { |
| 28 | MaxQueue q; |
| 29 | q.Push(10.f); |
| 30 | q.Push(9.f); |
| 31 | q.Push(8.f); |
| 32 | |
| 33 | Assert::AreEqual(10.f, *q.GetCurrent()); |
| 34 | q.Pop(10.f); |
| 35 | Assert::AreEqual(9.f, *q.GetCurrent()); |
| 36 | q.Pop(9.f); |
| 37 | Assert::AreEqual(8.f, *q.GetCurrent()); |
| 38 | q.Pop(8.f); |
| 39 | Assert::IsTrue(q.Empty()); |
| 40 | } |
| 41 | TEST_METHOD(MaxResetPushGreaterThanMax) |
| 42 | { |
| 43 | MaxQueue q; |
nothing calls this directly
no test coverage detected