This exercise gives you the opportunity to explore classes, Date/Time and unit tests in C#.
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.
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:
- Pine.fm. 2021. Learn to Program, Chapter 9, by Chris Pine. [online] Available at: https://pine.fm/LearnToProgram [Accessed 19 July 2021].
Time to move onto the instructions for Exercise005.