@HarshSharma you are setting up a function call to return THE expectedResult. Anything you set in the expectedResult will be equal to the expectedResult
mockRepo.Object.Execute seems a red flag. You should call sut.Execute
the other red flag is mocking the system under test
/imagine i.sstatic.net/e8MzhPmv.jpg but with a male in the rear left wearing a red apron and a female on the right holding an oversized mug of coffee with fish swimming in it.
Learn how to integrate AI into your .NET applications with Prompty, a powerful Visual Studio Code extension. The post Add AI to Your .NET Apps Easily with Prompty appeared first on .NET Blog.