Giter Site home page Giter Site logo

csharp-tdd-practice's Introduction

What Is This?

This is an example repo corresponding to multiple lessons within the LearnHowToProgram.com walkthrough on using Test-Driven Development, the "Red, Green, Refactor" workflow, and MSTest to create business logic for the Shape Tracker application in the C# and .NET Pre-Work: Test-Driven Development and Debugging. The functionality in the C# Shape Tracker app is meant to match the JavaScript Shape Tracker app that Epicodus students created in the Intermediate JavaScript course.

There are multiple branches in this repo that are described more below.

How To Run Tests

  1. Clone this repo.
  2. Open your shell (e.g., Terminal or GitBash) and navigate to this project's test directory called "ShapeTracker.Tests".
  3. Run dotnet test in the command line invoke MSTest to run tests. The results of running the tests will appear in the terminal.

How to Run the Project

  1. To optionally run the Shape Tracker app, first navigate to this project's production directory called "ShapeTracker".
  2. There is no user interface in this repo's default branch, but there is one in the branch 2_complete_testing. To access the branch 2_complete_testing, run the following commands within the "ShapeTracker" directory:
$ git fetch --all
$ git checkout 2_complete_testing
  1. In the command line, run dotnet run in the "ShapeTracker" directory to run the console app. Since this is a console application, you'll interact with it through text commands in your terminal. Take note that the user interface will vary from branch to branch.
  2. Optionally, you can run dotnet build to compile this console app without running it.

Available Branches

1_mstest_setup: This is the default branch with the the required file/folder structure required to write and run tests with MSTest. This branch includes the code we added after working through the following lessons:

2_complete_testing: This branch includes the code we added after working through the following lessons:

csharp-tdd-practice's People

Contributors

jessicahattig avatar

Stargazers

Jordan avatar Julien avatar

Watchers

 avatar

Forkers

willjolley

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.