What is Mock Version?
-
Hi, i need to know the exact meaning of Mock Vrsion. I want to send mock version of the email notification to outlook(eamil).
-
Hi, i need to know the exact meaning of Mock Vrsion. I want to send mock version of the email notification to outlook(eamil).
-
Hi, i need to know the exact meaning of Mock Vrsion. I want to send mock version of the email notification to outlook(eamil).
A mock object is generally used to represent an object that you cannot actually create during unit testing of your program using a unit testing tool. Another link worth looking at here[^]
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.
-
Hi, i need to know the exact meaning of Mock Vrsion. I want to send mock version of the email notification to outlook(eamil).
You need to ask the person who is telling you to do this. It makes no sense. With typical Mock objects they are what you use to make sure you can test your software without affecting (or requiring) anything outside of your software (like the database or in your case Outlook). So you would never really send anything to Outlook with a mock object. Mock objects are like pretend objects. A Mock e-mail class would pretend to be just like a normal e-mail class. It would have a send method that returns the correct value, but doesn't send anything. It would also give you the correct errors if you set the an address to something invalid. For each test, you tell it what to "expect" and what to do in response. Here is a good article. Understanding Mock Objects[^]