private Frame BuildFrame(string firstLaunch, string secondLaunch) { var first = GetLaunchValue(firstLaunch); var second = GetLaunchValue(secondLaunch); return(_builder.CreateFrame(first, second)); }
public void ValidateFrameCreation(int firstLaunch, int secondLaunch, bool isSpareExpected, bool isStrikeExpected) { Frame frame = _frameBuilder.CreateFrame(firstLaunch, secondLaunch); Assert.Equal(isSpareExpected, frame.IsSpare); Assert.Equal(isStrikeExpected, frame.IsStrike); }