Description
In this course, you will learn:-
- Use the NUnit framework to write simple unit tests in C#.
Syllabus:-
- About the Course
- Download Source Code and Slides
- Join .NET Community of Students
- BONUS
- Outline
- What is a Unit Test?
- Unit-Testing Frameworks
- First Unit Test
- Running and Debugging Tests in Visual Studio
- Benefits of Unit Testing
- Who should write unit tests and When?
- Programmer's Oath
- Exercise: Degree Converter
- Solution: Degree Converter
- Conclusion
- Outline
- Assert. Introduction
- Assert. Demo
- Arrange-Act-Assert (AAA)
- Running a Test from the Console
- SetUp and TearDown
- SetUp and TearDown on Higher Levels
- Parameterized Tests
- Grouping and Ignoring
- Code Coverage
- Exercise: FizzBuzz
- Solution: FizzBuzz
- Exercise: Roman Numerals
- Solution: Roman Numerals
- Exercise: Stack
- Solution: Stack