Skip to content

jieunkang-101/WordCounter.Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Word Counter

Intermediate C# and Testing Independent Project, 6 March 2020

By Jieun Kang

Description

A program that gathers both a word and sentence from a user, then checks how frequently the word appears in the sentence. It checks for full word matches only.

Setup/Installation Requirements

# Install C# and .NET

macOS

  1. Download .NET Core SDK (Software Development Kit)
    • Click this link will prompt a .pkg file download from Microsoft.
  2. Open the file
    • This will launch an installer which will walk you through installation steps. Use the default settings the installer suggests.
  3. Confirm the installation is successful (2.2.105)
    • Open your terminal and run the command
      $ dotnet --version

Windows

  1. Download 64-bit .NET Core SDK (Software Development Kit)
    • Click this links will prompt a .exe file download from Microsoft.
  2. Open the file
    • Follow the steps provided by the installer for your OS.
  3. Confirm the installation is successful
    • Open a new Windows PowerShell window and run the command
      $ dotnet --version

# Clone this repository

  1. Clone this project.
    • $ cd desktop
    • $ git clone https://github.com/jieunkang-101/WordCounter.Solution
    • $ cd WordCounter.Solution
  2. Run this console application
    • $ dotnet run

Behavior Driven Development Specifications

Behavior(Spec) Input Output
User inputs a word and sentence, with no word matches in the sentence W: this
S: I'm walking to the cathedral with a cat.
0
User inputs a single character word to match, and matches exist W: a
S: I'm walking to the cathedral with a cat.
1
User inputs a multi character word to match, and matches exist W: walking
S: I'm walking to the cathedral with a cat.
1
Program should check multiple instance of the inptted word W: the
S: I'm walking to the cathedral with the cat.
2
Program ignores partial matches in words W: cat
S: I'm walking to the cat hedral with my cat Misty.
1
Program ignores letter cases when checking matches W: Cat
S: I'm walking to the cathedral with my cAT Misty.
1
Program ignores punctuation(.,;:!?) when checking matches W: cat
S: I'm walking to the cathedral with my cat? cat! cat.
3
Program ignores apostrophe(e.g.: I'm, cat's, you're, don't, I've, I'll) when checking matches W: I
S: I 'm walking to the cathedral with my cat. I 'll be home soon.
2
If user input singular word, program will check plural versions of the word, too. W: cat
S: I'm walking to the cathedral with my cats. One cat is running after birds.
2
If user input plular word, progrma will only check the plural versions of the word. W: cats
S: I'm walking to the cathedral with my cats. One cat is running after birds.
1

Technologies Used

  • C#
  • .NET
  • MSTest

License

This webpage is licensed under the MIT license

Copyright © 2020 Jieun Kang

About

C# application with MSTest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages