private void InitTests(string environment = "sandbox", string logLevel = "Info", bool eventBuffering = false,
string readActivityState = null, string readAttribution = null)
{
// check log level
Assert.Test("MockLogger setLogLevel: " + logLevel);
// check environment level
if (environment.Equals("sandbox"))
{
Assert.AssertMessage("SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!");
}
else if (environment.Equals("production"))
{
Assert.AssertMessage("PRODUCTION: Adjust is running in Production mode. Use this setting only for the build that you want to publish. Set the environment to `sandbox` if you want to test your app!");
}
else
{
Assert.Fail();
}
// check event buffering
if (eventBuffering)
{
Assert.Info("Event buffering is enabled");
}
else
{
Assert.NotInfo("Event buffering is enabled");
}
ReadFiles(readActivityState, readAttribution);
}