{"id":19184453,"url":"https://github.com/connerkt/lab02-unittesting","last_synced_at":"2026-06-13T01:32:50.283Z","repository":{"id":180453306,"uuid":"664878886","full_name":"ConnerKT/Lab02-UnitTesting","owner":"ConnerKT","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-13T01:12:35.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T02:31:33.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConnerKT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-11T00:50:32.000Z","updated_at":"2023-07-11T00:50:39.000Z","dependencies_parsed_at":"2023-10-02T10:30:28.595Z","dependency_job_id":null,"html_url":"https://github.com/ConnerKT/Lab02-UnitTesting","commit_stats":null,"previous_names":["connerkt/lab02-unittesting"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ConnerKT/Lab02-UnitTesting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnerKT%2FLab02-UnitTesting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnerKT%2FLab02-UnitTesting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnerKT%2FLab02-UnitTesting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnerKT%2FLab02-UnitTesting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConnerKT","download_url":"https://codeload.github.com/ConnerKT/Lab02-UnitTesting/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnerKT%2FLab02-UnitTesting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34269363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T11:07:15.088Z","updated_at":"2026-06-13T01:32:50.274Z","avatar_url":"https://github.com/ConnerKT.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ATM Console Application - Lab 02: Unit Testing\n\n## Introduction\nWelcome to the Lab 02 of the ATM Console Application! In this lab, we will be focusing on implementing unit tests for the functionality of the ATM application. The goal is to ensure that each method performs as expected and handles both valid and invalid inputs correctly.\n\n## Prerequisites\nBefore starting the lab, make sure you have the following set up:\n- Visual Studio or any other preferred development environment.\n- XUnit testing framework installed.\n\n## Getting Started\nTo get started with the lab, follow these steps:\n\n1. Open your preferred development environment.\n2. Create a new project for unit testing using the XUnit testing framework.\n3. Add references to the ATM application project and the necessary dependencies.\n4. Set up the project to run the tests.\n\n## Writing Unit Tests\nNow, let's write unit tests for the different methods in the ATM application. Here are the requirements for the unit tests:\n\n1. Test every method that does not require user input.\n   - For each method, create a test case that passes valid input and another test case that passes invalid input.\n   - Ensure that the method behaves as expected for both cases.\n\n2. Test each non-void method at least twice.\n   - For example, test the `ViewBalance()` method with a valid input scenario and an invalid input scenario.\n   - Repeat this for all other non-void methods such as `Withdraw()` and `Deposit()`.\n\n3. Remember that a failing test is not a valid test, even if the failure is expected.\n   - Ensure that the tests pass when they should and fail when they should.\n\n4. Avoid testing console input/output.\n   - Since we cannot directly test methods that read from or write to the console, focus on testing the core logic of the methods.\n\n## Running the Unit Tests\nOnce you have written the unit tests, you can run them to verify the functionality of the ATM application. Here's how you can run the tests:\n\n1. Open the test project in your development environment.\n2. Build the test project to ensure all dependencies are resolved.\n3. Run the unit tests using the testing framework's interface or commands.\n4. Review the test results to see if any tests have failed.\n5. If a test fails, investigate the failure and make any necessary adjustments to the code.\n\n## Conclusion\nCongratulations! You have completed Lab 02 of the ATM Console Application, which focused on implementing unit tests for the application's functionality. By writing comprehensive tests, you can ensure that the application behaves as expected and handles different scenarios correctly.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnerkt%2Flab02-unittesting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnerkt%2Flab02-unittesting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnerkt%2Flab02-unittesting/lists"}