1291
GB
Mocking in unit testing?
IN
यूनिट परीक्षण में मजाक?
A
Creates real external services
वास्तविक बाहरी सेवाएँ बनाता है
B
Creates fake objects simulating real dependencies
वास्तविक निर्भरता का अनुकरण करते हुए नकली वस्तुएं बनाता है
C
Increases test time
परीक्षण का समय बढ़ाता है
D
Tests integration
परीक्षण एकीकरण
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Mocking creates fake objects that simulate the behavior of real dependencies for isolated unit testing.
व्याख्या (हिन्दी)
मॉकिंग नकली ऑब्जेक्ट बनाता है जो पृथक इकाई परीक्षण के लिए वास्तविक निर्भरता के व्यवहार का अनुकरण करता है।