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

Clean implementation of complex calculator #3

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

Conversation

scottjbaldwin
Copy link
Owner

Demonstration of Opinionated GIT

Scott Baldwin added 6 commits July 16, 2017 16:40
@scottjbaldwin scottjbaldwin force-pushed the CleanImplementationOfComplexCalculator branch from 3d20921 to 3faf417 Compare July 20, 2017 12:49
Copy link
Owner Author

@scottjbaldwin scottjbaldwin left a comment

Choose a reason for hiding this comment

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

Mis-spelling of Modulus

@@ -29,5 +29,18 @@ public void WhenImaginaryPartSet_ItCanBeReturned()
// Assert
Assert.Equal(13, num.Imaginary);
}

[Fact]
public void WhenModulousIsCalled_ItIsCalculatedAndReturned()
Copy link
Owner Author

Choose a reason for hiding this comment

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

Should be Modulus not Modulous

var num = new ComplexNumber { Real = 3, Imaginary = 4 };

// Act
var mod = num.Modulous();
Copy link
Owner Author

Choose a reason for hiding this comment

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

Should be Modulus not Modulous

@@ -7,5 +7,10 @@ public class ComplexNumber
public double Real { get; set; }

public double Imaginary { get; set; }

public double Modulous()
Copy link
Owner Author

Choose a reason for hiding this comment

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

Should be Modulus not Modulous


var c3 = c1.Add(c2);

Console.WriteLine("{0} + {1} = {2} with modulous {3}", c1, c2, c3, c3.Modulous());
Copy link
Owner Author

Choose a reason for hiding this comment

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

Should be Modulus not Modulous

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.

1 participant