/// <summary> /// Compares lhs and rhs. /// </summary> /// <param name="lhs">The LHS.</param> /// <param name="rhs">The RHS.</param> public int Compare(int lhs, int rhs) { int lhsCount = CountingTheNumberOfCharactersInTheString.Counting( Convertation.ConvertationIntToAnother(lhs, NumberSystem), CharSymbol); int rhsCount = CountingTheNumberOfCharactersInTheString.Counting( Convertation.ConvertationIntToAnother(rhs, NumberSystem), CharSymbol); return(lhsCount - rhsCount); }
public int CountingTheNumberOfCharactersInTheStringTest(string number, char symbol) => CountingTheNumberOfCharactersInTheString.Counting(number, symbol);