A program to test if a given year is a leap year.
-
Create LeapYearTest object
-
check that a year is not a leap year from a year we know is not a leap year.
- Expected Input: 1993
- Expected Output: False
- check a year that is divisible by 4.
- Expected Input: 2004
- Expected Output: True
- check a year that is divisible by 100.
- Expected Input: 1900
- Expected Output: False
- check a year that is divisible by 400.
- Expected Input: 2000
- Expected Output: True
-
Display a view that is a title screen.
-
Use form to ask user for a year.
- Expected Input: STRING
- Expected Output: None
- output string to main view
- Expected Input: None
- Expected Output: STRING
- check that form input is not a leap year from a year we know is not a leap year.
- Expected Input: STRING
- Expected Output: None
- check that form input is divisible by 4.
- Expected Input: STRING
- Expected Output: None
- check that form input is divisible by 100.
- Expected Input: STRING
- Expected Output: None
- check that form input is divisible by 400.
- Expected Input: STRING
- Expected Output: None
-
use form input as string in previous 4 tests.
-
refactor code as needed.
- Clone the git repository from 'https://github.com/camander321/LeapYearTest.git'.
- run the command 'dotnet restore' to download the necessary packages.
- run the command 'dotnet run' to build and run the server on localhost.
- use your preferred web browser to navigate to localhost:5000
- contact the author at [email protected]
- C#
- Asp .NET Core MVC
- HTML
- CSS
- Javascript
- Bootstrap
- JQuery
Copyright (c) 2018 Cameron Anderson & Andy Grossberg
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.