AdjustTest.Pcl.TestAttributionHandler.TestWithoutListener C# (CSharp) Method

TestWithoutListener() public method

public TestWithoutListener ( ) : void
return void
        public void TestWithoutListener()
        {
            AttributionHandler attributionHandler = new AttributionHandler(
                activityHandler: MockActivityHandler,
                attributionPackage: AttributionPackage,
                startPaused: false,
                hasDelegate: false);

            MockHttpMessageHandler.ResponseType = ResponseType.MESSAGE;

            attributionHandler.AskAttribution();

            DeviceUtil.Sleep(1000);

            // check that the activity handler is not paused
            Assert.NotDebug("Attribution handler is paused");

            // but it did not call the http client
            Assert.Null(MockHttpMessageHandler.HttpRequestMessage);

            Assert.NotTest("HttpMessageHandler SendAsync");
        }