Commit Graph

332 Commits

Author SHA1 Message Date
Markus Ewald
2f82a2fdf9 Updated Mono project (may replace it with pure SCons or Gradle build soon); added a threaded task runner I wrote for some WPF applications going through MCSE; wrote more unit tests for the thread runner
git-svn-id: file:///srv/devel/repo-conversion/nusu@332 d2e56fa2-650e-0410-a79f-9358c0239efd
2019-02-02 09:12:00 +00:00
Markus Ewald
e6e0220fb3 Used pragmas to avoid warnings in unit tests designed to test obsolete methods; method thread-related classes into a new namespace, 'Threading'
git-svn-id: file:///srv/devel/repo-conversion/nusu@331 d2e56fa2-650e-0410-a79f-9358c0239efd
2019-02-01 19:54:28 +00:00
Markus Ewald
a934fb155e Fixed async task notifications; added more comments; restored CancellationToken methods; removed useless usings
git-svn-id: file:///srv/devel/repo-conversion/nusu@330 d2e56fa2-650e-0410-a79f-9358c0239efd
2017-01-21 22:08:24 +00:00
Markus Ewald
fdf4442163 Added a set of interfaces implementing async methods in a plain enough way to support coroutines, RPC and P/Invokes; updated copyright statement for the year 2017
git-svn-id: file:///srv/devel/repo-conversion/nusu@329 d2e56fa2-650e-0410-a79f-9358c0239efd
2017-01-21 21:33:55 +00:00
Markus Ewald
6053f5a877 Found some more bits and pieces of WinRT + Xbox 360 support code and removed them
git-svn-id: file:///srv/devel/repo-conversion/nusu@328 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-08-19 11:32:56 +00:00
Markus Ewald
3f1809e5cc Fixed a bug in the ValueCollection: SyncRoot was returning the IsSynchronized property of the internal collection
git-svn-id: file:///srv/devel/repo-conversion/nusu@327 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-28 22:14:30 +00:00
Markus Ewald
7dd08c93e0 Removed the last traces on WinRT compatibility
git-svn-id: file:///srv/devel/repo-conversion/nusu@326 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-28 11:00:08 +00:00
Markus Ewald
ab6a3374d8 More documentation
git-svn-id: file:///srv/devel/repo-conversion/nusu@325 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-24 16:04:09 +00:00
Markus Ewald
3a945f5d48 Minor cosmetic improvements
git-svn-id: file:///srv/devel/repo-conversion/nusu@324 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-23 19:20:42 +00:00
Markus Ewald
52401a43ac The windows registry store can now enumerate non-existing categories, too
git-svn-id: file:///srv/devel/repo-conversion/nusu@323 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 22:04:16 +00:00
Markus Ewald
f74f1d0c6c Fixed a typo
git-svn-id: file:///srv/devel/repo-conversion/nusu@322 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 21:28:31 +00:00
Markus Ewald
dfc9be412a One unit test opened HKEY_LOCAL_MACHINE for testing, but it seems Mono on Linux doesn't grant even read access to this (emulated) key, so the unit test now uses HKEY_CURRENT_USER
git-svn-id: file:///srv/devel/repo-conversion/nusu@321 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 20:26:43 +00:00
Markus Ewald
40492c8b21 Achieved full test coverage for the configuration file store and the windows registry settings store
git-svn-id: file:///srv/devel/repo-conversion/nusu@320 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 20:02:33 +00:00
Markus Ewald
58504f4a8a Fully implemented the windows registry-based settings store; added more unit tests for the registry settings store
git-svn-id: file:///srv/devel/repo-conversion/nusu@319 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 16:24:08 +00:00
Markus Ewald
0d1051dd84 Documented the intended interface for the settings store; parseBooleanLiteral() is now a private method in the ConfigurationFileStore again; added some unit tests for the registry-based settings store
git-svn-id: file:///srv/devel/repo-conversion/nusu@318 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 15:58:07 +00:00
Markus Ewald
88105794a9 The configuration file store now understands 'yes' and 'no' as booleans; implemented the Get() and TryGet() methods of the windows registry settings store
git-svn-id: file:///srv/devel/repo-conversion/nusu@317 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 11:10:14 +00:00
Markus Ewald
e5f8b99519 Enumerating categories and options with the registry-based settings store is now working; updated mono-3.5 project
git-svn-id: file:///srv/devel/repo-conversion/nusu@316 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 10:43:23 +00:00
Markus Ewald
b6fe183994 Found some more remaining traces of Microsoft's scrapyard and killed them; removed WinRT support
git-svn-id: file:///srv/devel/repo-conversion/nusu@315 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 08:56:33 +00:00
Markus Ewald
b1b1f02e6f Removed the last traces of Windows Phone 7 and Xbox 360 support
git-svn-id: file:///srv/devel/repo-conversion/nusu@314 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-22 08:50:05 +00:00
Markus Ewald
9a4a051100 The unit test for the float helper was public -- fixed
git-svn-id: file:///srv/devel/repo-conversion/nusu@313 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-21 17:11:48 +00:00
Markus Ewald
cb85b3025e Added XML documentation for the mono-3.5 project
git-svn-id: file:///srv/devel/repo-conversion/nusu@312 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-21 16:21:02 +00:00
Markus Ewald
e8c21b91d4 Allowed compilation and unit tests with the mono-3.5 profile and without NMock
git-svn-id: file:///srv/devel/repo-conversion/nusu@311 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-21 16:17:13 +00:00
Markus Ewald
de4a7d2213 Added support for compilation under the Mono 3.5 profile; removed support for Windows Phone and Xbox 360
git-svn-id: file:///srv/devel/repo-conversion/nusu@310 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-21 15:46:40 +00:00
Markus Ewald
f9ebc95dd9 Updated the project files for the other platforms (but all XNA-related projects will be removed in the near future - betting on Microsoft was a mistake)
git-svn-id: file:///srv/devel/repo-conversion/nusu@309 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-21 13:07:22 +00:00
Markus Ewald
d55ba52369 Fully implemented the memory store and added unit tests for it
git-svn-id: file:///srv/devel/repo-conversion/nusu@308 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-21 12:58:33 +00:00
Markus Ewald
03ada146e5 Simplified the parsing code; all code paths of the configuration file store are now covered by tests
git-svn-id: file:///srv/devel/repo-conversion/nusu@307 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-21 12:03:22 +00:00
Markus Ewald
55b3ffd923 Options can now be removed from a configuration file; added more unit tests to cover all the code paths
git-svn-id: file:///srv/devel/repo-conversion/nusu@306 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-21 10:33:24 +00:00
Markus Ewald
7bde463b2a Changing and adding options works perfectly now
git-svn-id: file:///srv/devel/repo-conversion/nusu@305 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-20 23:18:44 +00:00
Markus Ewald
73a17b7a3e Changed the format of how the parsed configuration file is stored in memory - lines are now part of the categories, avoiding a costly scan over the whole array if lines are added to a category in the middle
git-svn-id: file:///srv/devel/repo-conversion/nusu@304 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-20 22:53:03 +00:00
Markus Ewald
0753aeb220 Configuration file parsing should be complete now (but creation and changing not so much)
git-svn-id: file:///srv/devel/repo-conversion/nusu@303 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-20 21:30:41 +00:00
Markus Ewald
7e39bd684f ConfigurationFileStore now parses category definitions and some cases of options; wrote a few methods for changing options and creating options and categories
git-svn-id: file:///srv/devel/repo-conversion/nusu@302 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-20 18:14:06 +00:00
Markus Ewald
ea68676cd2 Added some unit tests; the configuration file parser can now parse categories
git-svn-id: file:///srv/devel/repo-conversion/nusu@301 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-20 12:42:09 +00:00
Markus Ewald
91d382a940 There were some tab characters. Now they're dead.
git-svn-id: file:///srv/devel/repo-conversion/nusu@300 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-20 07:20:21 +00:00
Markus Ewald
2c3d9db4c9 Renamed the configuration namespace to settings; more progress on the configuration file parser; partially implemented the memory settings store
git-svn-id: file:///srv/devel/repo-conversion/nusu@299 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-19 22:16:41 +00:00
Markus Ewald
ddc76cf09f Made some progress on my configuration file parser / writer; ParserHelper can now skip over floating point values
git-svn-id: file:///srv/devel/repo-conversion/nusu@298 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-19 11:04:19 +00:00
Markus Ewald
0bb50d9254 Updated the copyright statement for the year 2014; remove CommandLine.txt which seemed to contain a copy of CommandLine.cs for a purpose I have long since forgotten
git-svn-id: file:///srv/devel/repo-conversion/nusu@297 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-19 09:13:36 +00:00
Markus Ewald
c90033caad Added a SkipString() method to the parser helper; began work in implementing a configuration file parser
git-svn-id: file:///srv/devel/repo-conversion/nusu@296 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-07-19 09:08:35 +00:00
Markus Ewald
2210973528 Returned to my own naming convention - at the latest, the 'SingleInt32Union' would raise the question about where there is only a single int32 in that union
git-svn-id: file:///srv/devel/repo-conversion/nusu@295 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-02-24 15:40:12 +00:00
Markus Ewald
5fb5b1f568 Fixed the problems the AreAlmostEqual() methods had with floating point zeros
git-svn-id: file:///srv/devel/repo-conversion/nusu@294 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-02-24 13:31:35 +00:00
Markus Ewald
0a7306bb58 Made the ParallelBackgroundWorker.CancelRunningTasks() and .CancelPendingTasks() methods safe to call after Dispose() (since many usage patterns become much easier with this allowed); Wait() didn't wait for queued tasks (though as long as tasks are queued, there will always be executing tasks, so this is just me being pedantic) - fixed; fixed a race condition in one of the unit tests for the ParallelBackgroundWorker
git-svn-id: file:///srv/devel/repo-conversion/nusu@293 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-02-24 11:02:39 +00:00
Markus Ewald
a2b92248b5 Parallel background worker unit tests are now internal again; added missing comments; nested unit test files under the implementation files they are testing
git-svn-id: file:///srv/devel/repo-conversion/nusu@292 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-02-20 14:49:08 +00:00
Markus Ewald
feac2b9c89 Added unit tests for parallel background worker; fixed some issues with the parallel background worker; added failing unit test for almost equal checks with doubles; fixed a typo
git-svn-id: file:///srv/devel/repo-conversion/nusu@291 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-02-20 14:33:40 +00:00
Markus Ewald
a18cb63fc5 Began work on a parallel background worker class that will be like the BackgroundWorker, but without the tight coupling to WinForms and with support for running multiple tasks in parallel
git-svn-id: file:///srv/devel/repo-conversion/nusu@290 d2e56fa2-650e-0410-a79f-9358c0239efd
2014-02-20 11:49:11 +00:00
Markus Ewald
33e26a93e7 Disabled Variegator completely on Windows Phone and Xbox 360 because those outdated .NET frameworks don't have sets (ISet)
git-svn-id: file:///srv/devel/repo-conversion/nusu@289 d2e56fa2-650e-0410-a79f-9358c0239efd
2013-07-15 13:46:07 +00:00
Markus Ewald
9a73838f6c Not using optional parameter in Variegator anymore because Windows Phone is a wuss
git-svn-id: file:///srv/devel/repo-conversion/nusu@288 d2e56fa2-650e-0410-a79f-9358c0239efd
2013-07-15 13:42:48 +00:00
Markus Ewald
63ddef021d Added more unit tests to the floating point helper classes; Variegator unit test is now internal
git-svn-id: file:///srv/devel/repo-conversion/nusu@287 d2e56fa2-650e-0410-a79f-9358c0239efd
2013-07-15 13:38:21 +00:00
Markus Ewald
2462dd6dc4 Added a C# port of my new Variegator collection, a MultiDictionary that resolves ambiguities by picking a random value or providing the least recently used one, very useful for returning varying responses
git-svn-id: file:///srv/devel/repo-conversion/nusu@286 d2e56fa2-650e-0410-a79f-9358c0239efd
2013-06-27 16:05:54 +00:00
Markus Ewald
4b94bdd1a5 Improved unit test names for the XML helper class
git-svn-id: file:///srv/devel/repo-conversion/nusu@285 d2e56fa2-650e-0410-a79f-9358c0239efd
2013-04-27 21:34:45 +00:00
Markus Ewald
23fe4cfd37 Added some helper methods for building parsers
git-svn-id: file:///srv/devel/repo-conversion/nusu@284 d2e56fa2-650e-0410-a79f-9358c0239efd
2013-04-27 21:14:02 +00:00
Markus Ewald
56cc2cee12 Updated copyright statement for the year 2013
git-svn-id: file:///srv/devel/repo-conversion/nusu@283 d2e56fa2-650e-0410-a79f-9358c0239efd
2013-04-25 13:12:32 +00:00