Skip to content

Instantly share code, notes, and snippets.

@rjax
rjax / testCaseSourceExample.md
Last active March 31, 2020 20:02
NUnit TestSourceData
[TestFixture]
public class Tests
{
    [TestCaseSource(typeof(TestData), "Explicit")]
    public decimal Test_Explicit(decimal value1, decimal value2, decimal value3)
    {
        return DoSomething(value1, value2, value3);
    }

[TestCaseSource(typeof(TestData), "ByObject")]