Skip to content
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

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open

Completed Assignment #84

wants to merge 33 commits into from

Conversation

tavisca-dmandal
Copy link

No description provided.

namespace BowlingBall.Tests
{
public class GameTest
{

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

@@ -0,0 +1,39 @@
using System;

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

[Fact]
public void RollWithPinsMoreThan10()
{
//roll cannot be more than 10 or negative

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

using Xunit;
namespace BowlingBall.Tests
{
public class SpareFrameTest

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename class as RegularFrameFixture

//Negative roll shall throw exception
try
{
SpareFrame spareFrame = new SpareFrame(-1, -2,-8);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var

{
public class StrikeFrameTest
{

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;

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();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants