Git Product home page Git Product logo

Comments (5)

peterberbec avatar peterberbec commented on June 18, 2024

@transistor1 How can I help?

from rdp-battmon.

transistor1 avatar transistor1 commented on June 18, 2024

@peterberbec well, I've written basic unit tests before, but I haven't yet learned how to do test-driven development correctly; for one thing, I probably should have been writing the tests as I went along. And since this program uses WMI, I think it's going to need mocking.

I've been playing with with Moq, a C# mocking framework, but I can't say I really know what I'm doing. I want to learn, and I am more than happy to have some help in this area. If you're good at TDD, grab a copy of Visual Studio Community, checkout the branch github-#3 (or start your own branch), and start hacking!

I used dependency injection to keep everything loosely coupled, so that should help with writing tests.

The problem I ran into right off the bat is that the Newtonsoft.Json library is having trouble resolving libraries; haven't figured out why.

image

from rdp-battmon.

transistor1 avatar transistor1 commented on June 18, 2024

Or if you don't feel comfortable in C#, but have experience with TDD in another language (I see you have some PHP repos), I can also use advice on how to proceed: naming test functions, best practices, etc.

from rdp-battmon.

peterberbec avatar peterberbec commented on June 18, 2024

I admit to understanding little if anything about TDD.

from rdp-battmon.

transistor1 avatar transistor1 commented on June 18, 2024

No worries! I've read some articles about TDD, & written simple tests for my own projects, so I know enough to be aware that I don't do it properly. Maybe someone else can assist us. If not, I'll muddle along the best I can.

from rdp-battmon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.