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. create our own unit testing framework in C#

create our own unit testing framework in C#

Scheduled Pinned Locked Moved C#
csharptestingbeta-testing
5 Posts 5 Posters 2 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.
  • S Offline
    S Offline
    Sakhalean
    wrote on last edited by
    #1

    Hi All, I want to create my own unit testing framework using C#. Can anybody please suggest me any websites or articles for creating our own unit testing framework using C#. Thank you All

    OriginalGriffO J L 3 Replies Last reply
    0
    • S Sakhalean

      Hi All, I want to create my own unit testing framework using C#. Can anybody please suggest me any websites or articles for creating our own unit testing framework using C#. Thank you All

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Why? Visual Studio includes a UT framework already ... you are reinventing the wheel and adding a layer of possible bugs to the testing environment as well as spending some considerable time developing what already exists.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • S Sakhalean

        Hi All, I want to create my own unit testing framework using C#. Can anybody please suggest me any websites or articles for creating our own unit testing framework using C#. Thank you All

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

        I doubt such a thing exists. The idea itself is fairly obvious so I am not sure what you would need to know other than having used one at one time. Now lets say you want to hook it into VS itself. That is not trivial. But you can't do that until you create the rest of it anyways. Best thing I can suggest it so look at source code for log4net. And maybe read through questions and bugs for that.

        1 Reply Last reply
        0
        • S Sakhalean

          Hi All, I want to create my own unit testing framework using C#. Can anybody please suggest me any websites or articles for creating our own unit testing framework using C#. Thank you All

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Yes ... go for NUnit2. NUnit4. [NUnit.org](https://nunit.org/)

          "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

          M 1 Reply Last reply
          0
          • L Lost User

            Yes ... go for NUnit2. NUnit4. [NUnit.org](https://nunit.org/)

            "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

            M Offline
            M Offline
            mtoha
            wrote on last edited by
            #5

            above is correct answer. search public Unit test project. Like NUnit in this case. GitHub - nunit/nunit: NUnit 3 Framework[^] I think you do not begin from scratch but if you confident with your abilities, you contact original writer and suggest yourself as contributor on NUnit project in example.

            Regards Toha

            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