Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Mocking Inputs?


  • Please log in to reply
2 replies to this topic

#1 Chuckles

Chuckles

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 17 June 2013 - 04:32 PM

I have gotten a lot of mileage out of .NET using Mocks for unit and integration tests in Visual Studio.

 

Is there an equivalent for the Micro Framework?

 

My eventual goal is to read from 4 sensors and do something with the captured information. Before I get to that goal, I was thinking that I could exercise the other parts of the system by creating "fake inputs", injecting known data into their structures/wrappers, and then debugging with that fake stuff.

 

Is that possible?

 

 

Thanks.

 



#2 Verdris

Verdris

    Advanced Member

  • Members
  • PipPipPip
  • 128 posts
  • LocationReno, NV

Posted 20 June 2013 - 10:22 PM

I, too, would be interested in this.



#3 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 20 June 2013 - 11:58 PM

Instead of Unit-testing, you might consider "black boxing" by writing a corresponding set of interfaces through which data Is introduced. You would then make your fake implementations always returning fixed or random dummy data as needed. Later of course, you would make real (non-fake) implementations.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.