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. C#
  4. Do you know any good unit testing and mocking frameworks for C#?

Do you know any good unit testing and mocking frameworks for C#?

Scheduled Pinned Locked Moved C#
csharpalgorithmstestingbeta-testingquestion
5 Posts 5 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.
  • J Offline
    J Offline
    JamesRichmond
    wrote on last edited by
    #1

    I'm searching for a good unit testing and mocking framework for C# (not necessarily open source). Any suggestions?

    J P G A 4 Replies Last reply
    0
    • J JamesRichmond

      I'm searching for a good unit testing and mocking framework for C# (not necessarily open source). Any suggestions?

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      I used to use nunit. Used to only because I haven't done any C# for a while. As long as it is being maintained I presume it is very usable. I didn't use mocks then but googling certainly suggest that they exist.

      1 Reply Last reply
      0
      • J JamesRichmond

        I'm searching for a good unit testing and mocking framework for C# (not necessarily open source). Any suggestions?

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        For mocking, I love JustMock from Telerik. It allows you to mock things that other mocking frameworks just can't cope with.

        This space for rent

        1 Reply Last reply
        0
        • J JamesRichmond

          I'm searching for a good unit testing and mocking framework for C# (not necessarily open source). Any suggestions?

          G Offline
          G Offline
          GregoryPres
          wrote on last edited by
          #4

          I usually use NUnit for test running, though we are thinking about porting to XUnit. For mocking we use Typemock as we need to deal with some legacy code. You can use Moq as well if you're starting a new project or if your code is testable. I've used it before when we were employing TDD from the beginning.

          1 Reply Last reply
          0
          • J JamesRichmond

            I'm searching for a good unit testing and mocking framework for C# (not necessarily open source). Any suggestions?

            A Offline
            A Offline
            Alex Schunk
            wrote on last edited by
            #5

            Moq is also good.

            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