Hi
Is there a way to use the NotifyProtocol.GetKeys extension method in a unit test?
I'm using Skyline.DataMiner.Dev.Protocol version 10.1.0.1.
Andries Deklerck [SLC] [DevOps Advocate] Selected answer as best 29th March 2023
Hi Andries,
To mock the behavior of the GetKeys method you will need to mock the "notifies" directly, due to being an extension method, you will need to mock the underlying calls.
In your case, you would need to mock NotifyProtocol 397 and NotifyProtocol 168.
Andries Deklerck [SLC] [DevOps Advocate] Selected answer as best 29th March 2023