Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.01 KB

File metadata and controls

25 lines (14 loc) · 1.01 KB

Exercise 004

This exercise gives you the opportunity to explore classes, Date/Time and unit tests in C#.

Instructions

Given a moment in time (represented as a date/time value), your job is to write a program to find the moment that would be after a gigasecond has passed.

A gigasecond is 10^9 (1,000,000,000) seconds.

Add additional unit tests

You'll see some starter unit tests in Exercise004Tests.cs Your job is to add additional unit tests and make all the unit tests pass.

Feel free to structure your code however you prefer to solve the exercise. We'd like to see clean code, so please keep clear separation of concerns, and the D.R.Y. (Don't Repeat Yourself) principle in mind.

This exercise is inspired by the following source:

Once you're done

Time to move onto the instructions for Exercise005.