Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'd suggest that two test cases are added, one where the input argument (cc) is null and where the input argument (cc) is string.Empty;
This solution will fail if the argument (cc) == null => Calling Length property will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
This solution will fail if the argument (cc) == null => Calling Length property will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
This solution will fail if the argument (cc) == null => Calling Length property will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
This solution will fail if the argument (cc) == null => Calling Length property will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
This solution will fail if the argument (cc) == null => Calling Length property will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
This solution will fail if the argument (cc) == null => Calling ToCharArray method will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
This solution will fail if the argument (cc) == null => Calling Length property will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
This solution will fail if the argument (cc) == null => Calling Length property will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
This solution will fail if the argument (cc) == null => Calling sInputText.Count() method will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
+1: For using constants and not "magic numbers/values"
This solution will fail if the argument (cc) == null => Calling ToCharArray method will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
This solution will fail if the argument (cc) == null => Calling Length property will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
Loading more items...