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. Other Discussions
  3. The Weird and The Wonderful
  4. NotImplementedException not implemented

NotImplementedException not implemented

Scheduled Pinned Locked Moved The Weird and The Wonderful
13 Posts 10 Posters 1 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.
  • D Offline
    D Offline
    Duncan Edwards Jones
    wrote on last edited by
    #1

    Was wondering why one of my unit tests was passing even when nonsense values were passed in...found:-

    if (row != null)
    {
    if (!row.IsNull(fieldName))
    {
    double fieldValue = (double)row[fieldName];
    // ok.. now what...
    }

    }

    What indeed....

    N B S 3 Replies Last reply
    0
    • D Duncan Edwards Jones

      Was wondering why one of my unit tests was passing even when nonsense values were passed in...found:-

      if (row != null)
      {
      if (!row.IsNull(fieldName))
      {
      double fieldValue = (double)row[fieldName];
      // ok.. now what...
      }

      }

      What indeed....

      N Offline
      N Offline
      Nathan Minier
      wrote on last edited by
      #2

      Be fair: we've all had days like that. Granted, one usually fixes it the next day...

      "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

      D P 2 Replies Last reply
      0
      • N Nathan Minier

        Be fair: we've all had days like that. Granted, one usually fixes it the next day...

        "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

        D Offline
        D Offline
        Duncan Edwards Jones
        wrote on last edited by
        #3

        Yeah - it's probably existential despair at what the code has to do - it is a filter function run on the client side that would be much more healthy if implemented as an SQL WHERE clause.

        1 Reply Last reply
        0
        • D Duncan Edwards Jones

          Was wondering why one of my unit tests was passing even when nonsense values were passed in...found:-

          if (row != null)
          {
          if (!row.IsNull(fieldName))
          {
          double fieldValue = (double)row[fieldName];
          // ok.. now what...
          }

          }

          What indeed....

          B Offline
          B Offline
          Brisingr Aerowing
          wrote on last edited by
          #4

          Like one of my classmates from Purdue who wrote a NotImplementedExceptionEx which threw itself in the constructor. He never figured out why trying to throw one caused his program to abruptly exit.

          What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

          Sander RosselS M 2 Replies Last reply
          0
          • B Brisingr Aerowing

            Like one of my classmates from Purdue who wrote a NotImplementedExceptionEx which threw itself in the constructor. He never figured out why trying to throw one caused his program to abruptly exit.

            What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

            Sander RosselS Offline
            Sander RosselS Offline
            Sander Rossel
            wrote on last edited by
            #5

            Did he find help on StackOverflow? :D

            Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

            Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

            Regards, Sander

            G O 2 Replies Last reply
            0
            • Sander RosselS Sander Rossel

              Did he find help on StackOverflow? :D

              Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

              Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

              Regards, Sander

              G Offline
              G Offline
              Gary Wheeler
              wrote on last edited by
              #6

              More importantly: did he ever give help on StackOverflow?

              Software Zen: delete this;

              OriginalGriffO O 2 Replies Last reply
              0
              • G Gary Wheeler

                More importantly: did he ever give help on StackOverflow?

                Software Zen: delete this;

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

                Nah...he couldn't earn enough points to answer a question!

                Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                "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
                • B Brisingr Aerowing

                  Like one of my classmates from Purdue who wrote a NotImplementedExceptionEx which threw itself in the constructor. He never figured out why trying to throw one caused his program to abruptly exit.

                  What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                  M Offline
                  M Offline
                  Middle Manager
                  wrote on last edited by
                  #8

                  I'm guessing he was a dual major - CS / Philosophy - and was attempting to express existentialist nihilism through code.

                  B 1 Reply Last reply
                  0
                  • M Middle Manager

                    I'm guessing he was a dual major - CS / Philosophy - and was attempting to express existentialist nihilism through code.

                    B Offline
                    B Offline
                    Brisingr Aerowing
                    wrote on last edited by
                    #9

                    AFAIK, he ended up switching to the hardware aspect of computing and has done much better.

                    What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                    1 Reply Last reply
                    0
                    • N Nathan Minier

                      Be fair: we've all had days like that. Granted, one usually fixes it the next day...

                      "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #10

                      Not always. I've had the following in one of mine for years:

                      else
                      {
                      /* I don't know what to put here */
                      }

                      1 Reply Last reply
                      0
                      • Sander RosselS Sander Rossel

                        Did he find help on StackOverflow? :D

                        Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                        Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                        Regards, Sander

                        O Offline
                        O Offline
                        obermd
                        wrote on last edited by
                        #11

                        Possibly.

                        1 Reply Last reply
                        0
                        • G Gary Wheeler

                          More importantly: did he ever give help on StackOverflow?

                          Software Zen: delete this;

                          O Offline
                          O Offline
                          obermd
                          wrote on last edited by
                          #12

                          Probably not. Every time I've tried I get blocked even if the answer is correct.

                          1 Reply Last reply
                          0
                          • D Duncan Edwards Jones

                            Was wondering why one of my unit tests was passing even when nonsense values were passed in...found:-

                            if (row != null)
                            {
                            if (!row.IsNull(fieldName))
                            {
                            double fieldValue = (double)row[fieldName];
                            // ok.. now what...
                            }

                            }

                            What indeed....

                            S Offline
                            S Offline
                            Snorri Kristjansson
                            wrote on last edited by
                            #13

                            You clearly need to write some unit tests for your unit test :)

                            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