Comments (1)
I can confirm the error you encountered. It arises due to the limitations imposed by the nature of static classes and readonly fields. Since GeneralAppInfo is a static class with a readonly field ApplicationVersion, direct modification for testing purposes is not feasible within the current setup. However, one workaround is to introduce a protected static method within GeneralAppInfo that allows setting the application version internally, and then changing ApplicationVersion to have a private setter.
public static string ApplicationVersion { get; private set; } = Application.ProductVersion;
public static void SetApplicationVersion(string version)
{
ApplicationVersion = version;
}
You can then use SetApplicationVersion in NUnit tests. However, it's worth noting that this approach may not provide significant benefits, as there are no checks implemented in the setter method. I dont know.
I've encountered additional issues following the recent changes:
1)
To resolve this, I need to change the project settings' langVersion from 'latest' to 'preview'. However, I'm not sure if this is the best approach. What do you think?
Perhaps this is a typo:
string detailsString = string.Join("; ", [.. details]);
The corrected version would be:
string detailsString = string.Join("; ", details);
Can anyone else confirm this?
Consider temporarily removing the read only flag for 'Application Version' in your local repository without committing the change. If you encounter the other two bugs, address them similar.
from mremoteng.
Related Issues (20)
- RDP Load Balance and Redirection Server HOT 2
- Always welcome screen HOT 2
- problems with OTP copy / Paste HOT 5
- Update to v1.77.3.nb-1784 installed over v1.77.2 doesn't show saved Connections HOT 1
- VNC connection with SSH Tunnel enabled doesn't work
- Feature Request - Add option for Connections and Config panel display at the same time when unpinned HOT 1
- Failure to redirect connection to TS through the RD Gateway
- Value cannot be null. (Parameter 'stream')
- Inconsistent Behaviour of Single vs Multiple Sessions when using mRemote + RDP Gateway HOT 2
- mRemoteNG with SQLDB to share connections
- PuTTY vulnerability affecting v0.68 to v0.8. CVE-2024-31497, HOT 1
- [DUPLICATE] PuTTY Vulnerability and mRemoteNG HOT 3
- Starting .exe from UNC path with config from UNC path not working. Issue is back.
- Text is blurred on SSH terminal HOT 1
- CVE-2020-24307 and CVE-2023-30367 HOT 1
- Can't Full Screen HOT 1
- Tab and app focus issues with nightly 1.77.3 1784
- Accessing Ubuntu 24 using the "Remote Login" feature
- list declaration as []
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 mremoteng.