mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-27 12:10:22 +00:00
92751ba6e9
some formatting might be fucked |
||
---|---|---|
.. | ||
Properties | ||
Test Files | ||
FlagTests.cs | ||
IrdTests.cs | ||
LogParsingProfiler.cs | ||
RangeTests.cs | ||
readme.md | ||
RegexTest.cs | ||
StarsFormatTest.cs | ||
StringUtilTests.cs | ||
Tests.csproj | ||
TimeParserTests.cs | ||
ZalgoTests.cs |
Tests
I am using NUnit, mostly because I'm most familiar with this test framework. There's not a lot of tests for the code itself, it is mostly used for testing things out before implementation.
You can use the regular $ dotnet test
command to run the tests without any additional tools.
If you want to contribute new test code, I have a couple of preferences:
-
Do use
Assert.That(expr, Is/Does/etc)
format instead of deprecatedAssert.AreEqual()
and similar. -
Try to write the code in the way that does not require the use of
InternalsVisibleTo
attribute. -
Tests that require any external data that must be manually supplied, should be disabled by default.