7
Mockowanie metod rozszerzeń za pomocą Moq
Mam już istniejący interfejs ... public interface ISomeInterface { void SomeMethod(); } i rozszerzyłem tę intreface za pomocą miksera ... public static class SomeInterfaceExtensions { public static void AnotherMethod(this ISomeInterface someInterface) { // Implementation here } } Mam klasę, która to nazywa, którą chcę przetestować ... public class Caller { …