/CsharpWeek2

Word Counter Code Review

Primary LanguageC#

Repeat Counter

Enter a word followed by a sentence to see how many times your word is inside of given sentence

By Matthew Caswell

Description

Specs

  • Behavior: User enters a letter and another single letter and it tells you how many match Input: o, o Output: 1 I chose this as my simplest spec because we are just checking to see if the two letters match.

  • Behavior: User enters two letters and they dont match it doesnt count it Input: a , b Output: 0 I chose this as my next spec because we want to see if their second word match's the input word.

  • Behavior: User enters multiple character word and another word and it will say if they match. Input: bake, back Output: 0 I chose this as the next spec because it seems like there isn't any simpler spec to preform before this one.

  • Behavior: User enters multiple character word and another word and it will say if they match. Input: bake, bake Output: 1 I chose this as the next spec because it seems like there isn't any simpler spec to preform before this one.

  • Behavior: User enters multiple word string and another word and it will say how many times word is inside given string Input: baseball, baseball is my favorite sport i love baseball. Output: 2 I chose this as the next spec because it seems like there isn't any simpler spec to preform before this one.

Setup/Installation Requirements

  • find on git hub
  • clone git hub repository
  • clone in to desktop

Support and contact details

If you have any questions or concerns please contact Matthew Caswell at 253-266-3091 or Matthewcaswell253@gmail.com

Technologies Used

for this project I used html, css, c#, nancy, razor, and x unit testing to test my project.

License

{MIT}

Copyright (c) 2016 {Matthew Caswell, Caswell Productions}