NSubstitute & Mock Implementasyonu
July 17, 2017Hali hazırda yürütmekte olduğumuz projenin testlerini yazarken polonyalı meslektaşım mocking için NSubstitute kullandıklarını söyledi. Hali hazırda çok ilerlememiş olduğumuz için projenin testlerini Nsubstitute’ e taşıdık. Başlarda biraz soğuk gelse de zamanla ısındım ve doğal dile daha yakın ifadeler içerdiğini gördüm. Kötü yanı dokümantasyonu çok açıklayıcı değil ancak çok fazla ihtiyaç duymuyorsunuz. Strategy pattern/Proxy implementasyonunu nasıl test edeceğimize dair küçük bir örnek yaptım.
Fikir vermesi için testleri burada paylaşıyorum.
|
|
hidden
AI: Where in the Loop Should Humans Go?
This is a re-publishing of a blog post I originally wrote for work, but wanted on my own blog as well.AI is everywhere, and its impressive claims are leading to rapid adoption. At this stage, I’d qualify it as charismatic technology—someth…
via Ferd.caMore Good Programming Quotes, Part 6
Here are more good programming quotes I have found since my last post. Programming “Configuration is coding in a poorly designed programming language without tests, version control, or documentation.”Gregor Hohpe “It’s the developers misunderstanding, not…
via Henrik Warne's blogHOWTO: Change your behavior
In theory, behavior change should be easy. At first glance, it seems like you control your behavior. So, if you desire different behavior, why doesn’t your behavior change as instantly as your desire to change it? In short, lasting change of habitual behavio…
via Matt Might's blog