Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. What is Mock Version?

What is Mock Version?

Scheduled Pinned Locked Moved .NET (Core and Framework)
questionannouncement
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gobi madura
    wrote on last edited by
    #1

    Hi, i need to know the exact meaning of Mock Vrsion. I want to send mock version of the email notification to outlook(eamil).

    D A T 3 Replies Last reply
    0
    • G Gobi madura

      Hi, i need to know the exact meaning of Mock Vrsion. I want to send mock version of the email notification to outlook(eamil).

      D Offline
      D Offline
      David Skelly
      wrote on last edited by
      #2

      http://en.wikipedia.org/wiki/Mock_object[^]

      1 Reply Last reply
      0
      • G Gobi madura

        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 Offline
        A Offline
        Abhinav S
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • G Gobi madura

          Hi, i need to know the exact meaning of Mock Vrsion. I want to send mock version of the email notification to outlook(eamil).

          T Offline
          T Offline
          T M Gray
          wrote on last edited by
          #4

          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[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups