Download the source code from Patreon: [ Ссылка ]
When classes adhere to the Single Responsibility Principle, unit testing becomes significantly smoother. By verifying just that one responsibility, the bulk of the testing process is streamlined. However, these small, precise classes need to be composed into larger graphs, posing the challenge: How do you ensure correct composition?
Structural inspection becomes the spotlight solution, allowing for rigorous testing that confirms objects are crafted and connected as they should be. By emphasizing the importance of both structural and behavioral tests, this method provides a holistic approach to unit testing.
A truly robust testing regimen dives deeper than just verifying behavior. It also ensures that the very structures and compositions of objects within the system are sound and optimized. That is where the structural inspection technique shines. At its core, structural inspection zeroes in on the composition of objects.
This video is applying the structural inspection technique to a practical example, where multiple subordinate objects can be grouped into an object of a class that implements the Composite design pattern. Many rules will guide the process, including those that govern the use of Null Object instances and other composite objects. It would be quite difficult to verify the correctness of the composition but, as you can witness if you watch this video, the use of structural inspection tests has greatly simplified the process.
Thank you so much for watching! Please like, comment & share this video as it helps me a ton!! Don't forget to subscribe to my channel for more amazing videos and make sure to hit the bell icon to never miss any updates.🔥❤️
✅🔔 Become a patron ► [ Ссылка ]
✅🔔 Subscribe ► [ Ссылка ]
⭐ Learn more from video courses:
Beginning Object-oriented Programming with C# ► [ Ссылка ]
⭐ Collections and Generics in C# ► [ Ссылка ]
⭐ Making Your C# Code More Object-oriented ► [ Ссылка ]
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⭐ CONNECT WITH ME 📱👨
🌐Become a patron ► [ Ссылка ]
🌐Buy me a Coffee ► [ Ссылка ]
🗳 Pluralsight Courses ► [ Ссылка ]
📸 Udemy Courses ► [ Ссылка ]
📸 Join me on Twitter ► [ Ссылка ]
🌐 Read my Articles ► [ Ссылка ]
📸 Join me on LinkedIn ► [ Ссылка ]
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
👨 About Me 👨
Hi, I’m Zoran, I have more than 20 years of experience as a software developer, architect, team lead, and more. I have been programming in C# since its inception in the early 2000s. Since 2017 I have started publishing professional video courses at Pluralsight and Udemy and by this point, there are over 100 hours of the highest-quality videos you can watch on those platforms. On my YouTube channel, you can find shorter video forms focused on clarifying practical issues in coding, design, and architecture of .NET applications.❤️
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⚡️RIGHT NOTICE:
The Copyright Laws of the United States recognize a “fair use” of copyrighted content. Section 107 of the U.S. Copyright Act states: “Notwithstanding the provisions of sections 106 and 106A, the fair use of a copyrighted work, including such use by reproduction in copies or phono records or by any other means specified by that section, for purposes such as criticism, comment, news reporting, teaching (including multiple copies for classroom use), scholarship, or research, is not an infringement of copyright." This video and our youtube channel, in general, may contain certain copyrighted works that were not specifically authorized to be used by the copyright holder(s), but which we believe in good faith are protected by federal law and the Fair use doctrine for one or more of the reasons noted above.
⭐For copyright or any inquiries, please contact us at zh@codinghelmet.com
#csharp #dotnet #unittesting
Ещё видео!