CSharp - Unittesting: Difference between revisions

From Devguid
No edit summary
Tag: visualeditor
No edit summary
Line 13: Line 13:


</syntaxhighlight>
</syntaxhighlight>
https://carlpaton.github.io/2021/01/mocking-net-core-iconfiguration/


==== References ====
==== References ====

Revision as of 22:02, 26 March 2023

IOptions

Memory, array of string

using Test;

public void Test()
{

}

https://carlpaton.github.io/2021/01/mocking-net-core-iconfiguration/

References

https://codeburst.io/unit-testing-with-net-core-ilogger-t-e8c16c503a80

https://stackoverflow.com/questions/37825107/net-core-use-configuration-to-bind-to-options-with-array

https://carlpaton.github.io/2021/01/mocking-net-core-iconfiguration/

https://stackoverflow.com/questions/40876507/net-core-unit-testing-mock-ioptionst

https://stackoverflow.com/questions/249847/how-do-you-test-private-methods-with-nunit

http://ikeptwalking.com/fakeiteasy-and-verifying-method-parameters/

https://stackoverflow.com/questions/39791634/read-appsettings-json-values-in-net-core-test-project

https://stackoverflow.com/questions/55497800/populate-iconfiguration-for-unit-tests

https://stackoverflow.com/questions/44807836/loading-startup-configuration-from-json-located-in-memory

https://thecodeblogger.com/2021/04/18/using-memory-configuration-provider-in-net-applications/

https://stackoverflow.com/questions/43424095/how-to-unit-test-with-ilogger-in-asp-net-core

https://stackoverflow.com/questions/672501/is-there-an-easy-way-to-use-internalsvisibletoattribute

https://stackoverflow.com/questions/58510301/could-not-load-file-or-assembly-microsoft-extensions-logging-abstractions