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. Unit Testing of an Interface?

Unit Testing of an Interface?

Scheduled Pinned Locked Moved C#
testingbeta-testingquestion
4 Posts 3 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.
  • S Offline
    S Offline
    sreecahitu
    wrote on last edited by
    #1

    Is it possible to conduct unit tests for interfaces in ,net framework other than constructors, classes, methods? i would appreciate if anyone can provide a clue to me.

    V K 2 Replies Last reply
    0
    • S sreecahitu

      Is it possible to conduct unit tests for interfaces in ,net framework other than constructors, classes, methods? i would appreciate if anyone can provide a clue to me.

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #2

      What do you mean by "unit tests for interfaces"? Interfaces, by their very nature, will not have concrete implementations - so what are you going to test?

      Cheers, Vikram.


      The cold will freeze our stares We won't care...

      K 1 Reply Last reply
      0
      • S sreecahitu

        Is it possible to conduct unit tests for interfaces in ,net framework other than constructors, classes, methods? i would appreciate if anyone can provide a clue to me.

        K Offline
        K Offline
        KevinMac
        wrote on last edited by
        #3

        I am assuming you are discussing the unit testing of the user interface of an application web or winform. There are open source and commercial products which address this however they are not as complete as one would hope. For the last two years I have been using the MVP pattern which allows me to provide a richer level of unit testing for the controls on the user interface. Martin Fowler Previous to this I used the MVC pattern which provides much of the same benifits. I have used the open source asp.net and win forms unit testing tools but they are difficult to get the level of results I was looking for.

        1 Reply Last reply
        0
        • V Vikram A Punathambekar

          What do you mean by "unit tests for interfaces"? Interfaces, by their very nature, will not have concrete implementations - so what are you going to test?

          Cheers, Vikram.


          The cold will freeze our stares We won't care...

          K Offline
          K Offline
          KevinMac
          wrote on last edited by
          #4

          great answer. I am not sure if the topic is user interface or interfaces. Wow it is easy to get it confusing.

          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