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

TestPause() public method

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

            MockHttpMessageHandler.ResponseType = ResponseType.MESSAGE;

            attributionHandler.AskAttribution();

            DeviceUtil.Sleep(1000);

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

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

            Assert.NotTest("HttpMessageHandler SendAsync");
        }