Word Counter is a program that checks how frequently a word appears in a given string. The user should input both the word and a list of words to check. The program will check for full word matches only.
Please Note: There is no user interface. This currently only includes logic and testing.
This is an exercise to apply and test our understanding of C# unit week 1 lessons. Primary Objectives:
- Did you submit your English specs as a separate text file (or README)? Was it committed before you began your code?
- Do your specs include specific input and output as well as a descriptive sentence?
- Do your specs start with the simplest case and progress to more complex cases? Do they cover enough different input values?
- Have all specs been written up correctly as test methods?
- Are all tests passing? Does your method correctly return the number of repeats?
- The program should validate the user entered a word or sentence (what will be searched) as an input.
- input: "apple"
- output: "apple"
A single word was chosen for input/output because it's enough to pass test and confirm validity.
- The program should validate the user entered a word (what will be searched for) as an input.
- input: "apple"
- output: "apple"
A single word was chosen for input/output because it's enough to pass test.
- The program is able validate and count the number of times it is found in a list.
- input: "apple, apple"
- output: 2
Two of the same word was used as input as it's the simplest number to count to for ensuring loop is working/counting as intended.
- No user interface. This currently only includes logic and testing.
- Numbers and other characters are not counted.
- Clone this repository by using Terminal command:
$ git clone https://github.com/VicOhPNW/word-counter.git
Contact: Victoria, ohvictori@gmail.com
- C#, ASP.NET Core 1.1