-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completed Assignment #84
base: master
Are you sure you want to change the base?
Conversation
…ing datatype of variables
…me class using rollslist
BowlingBall.Tests/GameTest.cs
Outdated
namespace BowlingBall.Tests | ||
{ | ||
public class GameTest | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These all tests should be in file GameFixture.cs
BowlingBall.Tests/FrameTest.cs
Outdated
@@ -0,0 +1,39 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File name should be FrameFixture.cs
BowlingBall.Tests/GameTest.cs
Outdated
[Fact] | ||
public void RollWithPinsMoreThan10() | ||
{ | ||
//roll cannot be more than 10 or negative |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create one private variable to hold instance of Game class and use that variable everywhere, rather than creating new game instance in every fixture
BowlingBall.Tests/SpareFrameTest.cs
Outdated
using Xunit; | ||
namespace BowlingBall.Tests | ||
{ | ||
public class SpareFrameTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename class as SpareFrameFixture
using Xunit; | ||
namespace BowlingBall.Tests | ||
{ | ||
public class RegularFrameTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename class as RegularFrameFixture
BowlingBall.Tests/SpareFrameTest.cs
Outdated
//Negative roll shall throw exception | ||
try | ||
{ | ||
SpareFrame spareFrame = new SpareFrame(-1, -2,-8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var
BowlingBall.Tests/StrikeFrameTest.cs
Outdated
{ | ||
public class StrikeFrameTest | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename class to StrikeFrameFixture
@@ -0,0 +1,150 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you have added 'The' in class name????
Also rename it to 'BowlingGameFixture'
[Fact] | ||
public void ScoreCannotBeMoreThan300() | ||
{ | ||
ArrayList rolls = new ArrayList(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var
…to hold instance of Game
…private variable to hold instance of RegularFrame
… every local variable declaration
No description provided.