MYR006: How to Validate Enum Parameters in C#. Unit Testing in The-Standard App | Refugee Land

Опубликовано: 06 Июль 2026
на канале: Dasturlashni O'rganamiz
585
8

In this session, me and Brother Burim talked about how we can check if enum value provided as a parameter is defined inside the actual enum type. We are using xUnit, Moq, Fluent Assertions as well as Object Filler to write the unit test for it. We made it pass using system methods that Enum Type offers out of the box.