DevLabs > DevLabs Forums > Pex > Minor documentation issues with moles and .stubx XML.
Ask a questionAsk a question
 

AnswerMinor documentation issues with moles and .stubx XML.

  • Friday, September 18, 2009 2:35 PMJLeBert Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    A couple tiny things about the documentation. In the last paragraph of section 3.2 Mole Requirements, you say:
        The instrumentation can be set up using the Pexinstrumentation attributes.
    It would make that a little clearer saying you need to add something like:
        [assembly: PexInstrumentAssembly(typeof(MyType))]
    to the AssemblyInfo.cs file or at least say PexInstrumentAssembly attribute instead of "Pexinstrumentation attributes".

    Also, the tutorial could use some more examples for the .stubx file elements. Having actual XML examples makes this much easier to understand.

    Besides that, I was up and running in less time than it took me to figure out TypeMock or RhinoMocks!

    Keep up the wonderful work!

Answers

All Replies

  • Friday, September 18, 2009 4:22 PMPeliMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks you for reporting this. I will keep this thread open to track this issue.
    Jonathan "Peli" de Halleux
  • Tuesday, October 27, 2009 12:57 PMPeliMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Moles now reports the instrumentation issues to the user and provides the fix in the exception message... so you don't have to read the documentation.
    Jonathan "Peli" de Halleux - Give us your input about Pex!