public void TestDroppedRegisterAndNotifyFlow()
        {
            const bool   useNullTransport = false;
            TestProfiler testProfiler     = SetupTestProfiler(useNullTransport);

            RegisterStaticAsserts(useNullTransport);

            TestProfiler.ProfilerBeginTick();
            testProfiler.Send();
            TestProfiler.NotifyProfilerListeners();

            // Capturing data after notifying listeners is bad
            Assert.Catch <NoTickDataException>(() =>
            {
                testProfiler.Send();
            });

            Assert.IsTrue(testProfiler.HasSentAnyData);
        }
        public void TestNormalRegisterAndNotifyFlow()
        {
            const bool   useNullTransport = false;
            TestProfiler testProfiler     = SetupTestProfiler(useNullTransport);

            RegisterStaticAsserts(useNullTransport);

            TestProfiler.ProfilerBeginTick();
            testProfiler.Send();
            TestProfiler.NotifyProfilerListeners();

            Assert.IsTrue(testProfiler.HasSentAnyData);
        }