Uploaded March 2015 | Updated September 2026, 1 week ago
Mocks and Mocking solves the problem of Behavior Assertion. However, I don't like that mocking couples your test methods to the (current) implementation. Using Test Mediators is another way to achieve the end (Behavior Assertion).
Mocks and Mocking solves the problem of Behavior Assertion. However, I don't like that mocking couples your test methods to the (current) implementation. Using Test Mediators is another way to achieve the end (Behavior Assertion).


![C# Flags Enum Explained - Deep Dive
Even if youve defined enums in C# decorated with the [Flags] attribute, youll find this deep dive extremely informative.
In this video I take you under the hood and explain whats really going on and how you can use bitwise operations for enums and treat them as Sets that contain multiple possible values and how to use bitwise operations to answer questions such as
1. Does the set contain X element
2. Add element X to an existing set
3. Remove element X from an existing set
We also explore the bitwise Left Shift operator and how we can use it while defining our enum elements and their values. C# Flags Enum Explained - Deep Dive](https://i.ytimg.com/vi/kztYsmUJNU4/mqdefault.jpg)







