Bowling Game: Array of Frames: Step 18
Here’s the test:
TEST_METHOD(FrameSumTooLargeThrowsException)
{
Assert::ExpectException<std::out_of_range>([this] { RollMany(2, 6); }, L"when sum of rolls in a frame too large an std::out_of_range exception is thrown");
}
It fails as expected.
Let’s write just enough code to pass all the tests, and then click Next