public void Create_ActionNoParams_ActionOfSameType()
    {
        var test = new Test(() => { });

        var action = TestActionFactory.Create(test);

        Assert.IsInstanceOf(typeof(Action <CancellationToken>), action);
    }
    public void Create_ActionWithParams_ActionOfSameType()
    {
        Action <int, string> testAction = (i, s) => s = s + i;

        var test = new Test <int, string>(testAction);

        test.InsertParameter("Gello");

        test.InsertParameter(2);

        var action = TestActionFactory.Create(test);

        Assert.IsInstanceOf(typeof(Action <CancellationToken>), action);
    }