How do I test Aspects (AOP)?



  • I have recently written a bunch of aspects (using PostSharp in C#) that will be applied to methods in some high traffic sites.

    How should I make sure they are going to perform?

    Can anyone recommend some load testing/profiling techniques that I can use?



  • As aspects are typically written to add behaviour to code, I would suggest that you'll need to indirectly test the functionality by creating a test object/method that'll be impacted by the aspect and then blackbox test the code at runtime for the behaviour you'd expect to be seeing.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 3
  • 2
  • 2