discord-bot/Tests
2021-08-20 20:04:13 +05:00
..
Properties fix more compiler complaints 2020-11-11 00:30:02 +05:00
Test Files Test project 2018-11-05 19:33:30 +05:00
FlagTests.cs only post ocr results on discord channel if the message was removed 2020-03-12 19:26:11 +05:00
IrdTests.cs better azure pipelines integration and building docker image 2019-09-19 23:32:05 +05:00
LogParsingProfiler.cs fix resharper warnings 2020-11-14 15:58:16 +05:00
RangeTests.cs apply compiler suggestions 2020-11-13 15:12:41 +05:00
readme.md some docs 2019-04-01 22:52:27 +05:00
RegexTest.cs fix missing license extraction 2021-03-04 19:10:50 +05:00
StarsFormatTest.cs better azure pipelines integration and building docker image 2019-09-19 23:32:05 +05:00
StringUtilTests.cs try to use username when it's better than the nickname 2021-05-01 23:58:39 +05:00
Tests.csproj update 3rd party deps 2021-08-20 20:04:13 +05:00
TimeParserTests.cs better azure pipelines integration and building docker image 2019-09-19 23:32:05 +05:00
ZalgoTests.cs add more zalgo checks 2021-05-01 23:42:57 +05:00

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 deprecated Assert.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.