public void Multiply(int a, int b, int expected) { // Arrange CodeWarsSolver mult = new CodeWarsSolver(); // Act int actual = mult.Multiply(a, b); // Assert Assert.Equal(expected, actual); }
public void EvenOrOdd(int number, string expected) { // Arrange CodeWarsSolver evenOdd = new CodeWarsSolver(); // Act string actual = evenOdd.EvenOrOdd(number); // Assert Assert.Equal(expected, actual); }
public void TreeFiddy(string sentence, bool expected) { // Arrange CodeWarsSolver kata = new CodeWarsSolver(); // Act bool actual = kata.IsLochNessMonster(sentence); // Assert Assert.Equal(expected, actual); }
public void NoSpace(string input, string expected) { // Arrange CodeWarsSolver spaces = new CodeWarsSolver(); // Act string actual = spaces.NoSpace(input); // Assert Assert.Equal(expected, actual); }
public void ArrayDiff(int[] a, int[] b, int[] expected) { // Arrange CodeWarsSolver diff = new CodeWarsSolver(); // Act int[] actual = diff.ArrayDiff(a, b); // Assert Assert.Equal(expected, actual); }
public void WhoIsNext(string[] values, long n, string expected) { // Arrange CodeWarsSolver solver = new CodeWarsSolver(); // Act string actual = solver.WhoIsNext(values, n); // Assert Assert.Equal(expected, actual); }
public void IsPrime(int n, bool expected) { // Arrange CodeWarsSolver doIt = new CodeWarsSolver(); // Act bool actual = doIt.IsPrime(n); // Assert Assert.Equal(expected, actual); }
public void Solution(int value, int expected) { // Arrange CodeWarsSolver solution = new CodeWarsSolver(); // Act int actual = solution.Solution(value); // Assert Assert.Equal(expected, actual); }
public void BreakCamelCase(string str, string expected) { // Arrange CodeWarsSolver camelCase = new CodeWarsSolver(); // Act string actual = camelCase.BreakCamelCase(str); // Assert Assert.Equal(expected, actual); }
public void BasicMathOperation(char operation, double value1, double value2, double expected) { // Arrange var cwSolver = new CodeWarsSolver(); // Act double actual = cwSolver.basicOp(operation, value1, value2); // Assert Assert.Equal(actual, expected); }
public void Bmi(double weight, double height, string expected) { // Arrange CodeWarsSolver bmi = new CodeWarsSolver(); // Act string actual = bmi.Bmi(weight, height); // Assert Assert.Equal(expected, actual); }
public void FindAverage(double[] array, double expected) { // Arrange CodeWarsSolver avg = new CodeWarsSolver(); // Act double actual = avg.FindAverage(array); // Assert Assert.Equal(expected, actual); }
public void Combat(float health, float damage, float expected) { // Arrange CodeWarsSolver combat = new CodeWarsSolver(); // Act float actual = combat.Combat(health, damage); // Assert Assert.Equal(expected, actual); }