public void TestEventsNotBuffered()
{
LogConfig.SetupLogging(logDelegate: msg => System.Diagnostics.Debug.WriteLine(msg),
logLevel: LogLevel.Debug);
// create the config to start the session
AdjustConfig config = new AdjustConfig("123456789012", AdjustConfig.EnvironmentSandbox);
// start activity handler with config
ActivityHandler activityHandler = GetActivityHandler(config);
DeviceUtil.Sleep(3000);
// test init values
InitTests(AdjustConfig.EnvironmentSandbox, "Debug", false);
// test first session start
CheckFirstSession();
// create the first Event
AdjustEvent firstEvent = new AdjustEvent("event1");
// track event
activityHandler.TrackEvent(firstEvent);
DeviceUtil.Sleep(2000);
// check that event package was added
Assert.Test("PackageHandler AddPackage");
// check that event was sent to package handler
Assert.Test("PackageHandler SendFirstPackage");
// and not buffered
Assert.NotInfo("Buffered event");
// after tracking the event it should write the activity state
Assert.Debug("Wrote Activity state");
}