Skip to content

Collection of solutions for katas in C# (using TDD)

License

Notifications You must be signed in to change notification settings

StormPooper/CSharpKatas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# Katas

A collection of .NET 4.0 C# Katas, build using TDD - see commit history for how it was built up (red-green-refactor - red step not commited). Tests included in each project.

Code by Daniel Smith

  • Convert any numeric value to the equivalent roman numeral sequence
  • Convert any roman numeral sequence to its numeric value
  • Pass in a string of delimited numbers and add them together
  • Handle commas and newlines by default
  • Allow custom delimiters of any length to be defined on a line at the start of the string
  • Negative numbers should not be allowed
  • Incorrect inputs are not tested
  • A game of bowling lasts ten frames.
  • In each frame, the bowler makes one or two attempts to knock down ten pins.
  • If they get a strike, they score ten pins plus the number of pins knocked down on their next two rolls.
  • If they get a spare, they scores ten pins plus the number of pins knocked down on their next roll.
  • If the bowler fails to knock down all ten pins they score the number of pins knocked down.
  • The scores accumulate through all ten frames.
  • At the last frame, if necessary, the pins are reset for one or two additional rolls to count the final bonus.
  • "My hobby: Whenever anyone calls something an [adjective]-ass [noun], I mentally move the hyphen one word to the right."
  • "Man, that's a sweet ass-car."
  • Doesn't replace if the string doesn't match the pattern [word]-ass [word].

About

Collection of solutions for katas in C# (using TDD)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages