MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.

I'm not curious

Defensive Coding in C#

Course Summary

You will learn how to write clean, maintainable, and testable code when faced with constantly changing requirements, legacy issues, intensive time pressures, and a rapidly evolving environment. You will also learn how to keep that code great after mainten

  • +

    Course Syllabus

    ● Introduction
        ◦ Introduction
        ◦ What is Defensive Coding?
        ◦ Clean Code
        ◦ Testable Code and Unit Tests
        ◦ Predictable Code
        ◦ Topics
    ● Defending Your Methods - Part 1
        ◦ Introduction
        ◦ Clean, Testable, and Predictable Methods
        ◦ Example: Clean, Testable, and Predictable Methods
        ◦ Demo: Creating a Class Library Component
        ◦ Demo: Clean, Testable, and Predictable Methods
        ◦ Demo: Named Arguments
        ◦ Key Points
    ● Defending Your Methods - Part 2
        ◦ Introduction
        ◦ Validating Method Parameters
        ◦ Demo: Validating Method Parameters
        ◦ Demo: Method Overloading
        ◦ Key Points
    ● Automated Code Testing
        ◦ Introduction
        ◦ I Don't Have Time to Test!
        ◦ Code First vs. Test First
        ◦ Defining Unit Test Cases
        ◦ Creating Unit Tests
        ◦ Using Test Explorer
        ◦ Generating Unit Tests
        ◦ Unit Tests and Exceptions
        ◦ Dependencies
        ◦ Summary
    ● Defending Your Methods Part 3: Returning Predictable Results
        ◦ Introduction
        ◦ Method Results
        ◦ Demo: Returning a Value
        ◦ Demo: Returning Exceptions
        ◦ Demo: Returning Multiple Values
        ◦ Returning Null
        ◦ Summary
    ● Defending Your Code Constructs
        ◦ Introduction
        ◦ Local Variable Declarations
        ◦ If Statements
        ◦ Switch Statements
        ◦ Enums
        ◦ Casting
        ◦ Summary
    ● Asserts, Errors, and Exceptions
        ◦ Introduction
        ◦ Demo: Preparing the Sample Code
        ◦ Asserts
        ◦ Anticipated Errors
        ◦ Unexpected Exceptions and a Global Exception Handler
        ◦ Exception Handling
        ◦ Summary
    ● Final Words
        ◦ Introduction
        ◦ Legacy Code
        ◦ For More Information
        ◦ Summary


Course Fee:
USD 29

Course Type:


Course Status:



1 - 4 hours / week

This course is listed under Development & Implementations and Quality Assurance & Testing Community

Related Posts:

Attended this course?

Back to Top

Awards & Accolades for MyTechLogy
Winner of
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top