mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-04 05:35:52 +00:00
[PR #79] [MERGED] Add Test Project #951
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/MPF/pull/79
Author: @mnadareski
Created: 6/28/2018
Status: ✅ Merged
Merged: 6/29/2018
Merged by: @mnadareski
Base:
master← Head:r2📝 Commits (10+)
1e72a8eAdd Test project; Migrate so there's not an external folder5b27619Add Test project; Migrate so that there's not an external folder79d1394Fix build; Add remaining test classes (skeletons)d7e3fcdFix more pathsf6f5b01Make unit tests runnable, fix issue found by unit tests1b9d768Add more tests, fix more things found by tests3a17eaaAdd skeleton for ValidatorsTest, fix OrderedDictionarye99fb3dAdd UIElementsTest6154045Add new test classes, slightly update Result43dcaddImplement DumpEnvirionment tests; fix minor things from testing📊 Changes
33 files changed (+979 additions, -452 deletions)
View changed files
➕
DICUI.Test/DICUI.Test.csproj(+101 -0)➕
DICUI.Test/Data/UIElementsTest.cs(+21 -0)➕
DICUI.Test/DumpEnvironmentTest.cs(+74 -0)➕
DICUI.Test/Properties/AssemblyInfo.cs(+20 -0)➕
DICUI.Test/ResultTest.cs(+39 -0)➕
DICUI.Test/TasksTest.cs(+30 -0)➕
DICUI.Test/Utilities/ConvertersTest.cs(+123 -0)➕
DICUI.Test/Utilities/DumpInformationTest.cs(+61 -0)➕
DICUI.Test/Utilities/KnownSystemExtensionsTest.cs(+21 -0)➕
DICUI.Test/Utilities/MediaTypeExtensionsTest.cs(+48 -0)➕
DICUI.Test/Utilities/ValidatorsTest.cs(+76 -0)➕
DICUI.Test/packages.config(+14 -0)📝
DICUI.sln(+7 -1)📝
DICUI/App.config(+0 -0)📝
DICUI/App.xaml(+0 -0)📝
DICUI/App.xaml.cs(+0 -0)📝
DICUI/DICUI.csproj(+0 -0)📝
DICUI/Data/Constants.cs(+0 -1)📝
DICUI/Data/Enumerations.cs(+0 -0)📝
DICUI/External/IOrderedDictionary.cs(+0 -0)...and 13 more files
📄 Description
The main purpose of this PR is to add a testing project based on xUnit to DICUI. This will give us the ability to add unit tests for any new code and help check if any changes that are made will break the program in a notable way. This is not currently set up to be run automatically on pull requests, mostly because I have no idea how to set that up.
Most of the code is currently tested, though there are some that rely on external programs or external files that will have to be added later, possibly using the Moq framework.
Additionally, there have been multiple small bugfixes that were found during the process of writing and running the unit tests, including but not limited to:
Fixes #48
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.