Comments (5)
@transistor1 How can I help?
from rdp-battmon.
@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.
from rdp-battmon.
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.
I admit to understanding little if anything about TDD.
from rdp-battmon.
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)
- Idea: automatically copy and execute the server-side battery display
- Logging doesn't work HOT 2
- Multiple Battery Support HOT 30
- Give battery icon some contrast on white background
- Add an icon when battery level is unknown HOT 1
- Crash in Win32BatteryManagementObjectSearcher::GetAllBatteries()
- Multiple batteries: no batteries are being detected HOT 13
- Turn RDP Virtual Channel library into a NuGet package HOT 1
- Make pollinginterval user settable
- Make server logging work the same way as client logging
- Move all strings into .resx files
- AC charging appears as "Unknown" HOT 9
- Exception occurs when client computer falls asleep (hibernates?) HOT 15
- Percentage reported over 100% HOT 9
- System.ArgumentOutOfRangeException: Index was out of range. HOT 4
- Tray App: Parameter is not valid.
- Prebuilt binaries for Windows RT HOT 2
- "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\" Registry Entry Not On My Client Machine HOT 20
- Write a client-side installer HOT 4
- is this project still active? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdp-battmon.