public void FlushShouldReturnNullWhenEmpty()
        {
            var monitor = new SyncMonitor();
            var results = monitor.GetAndFlushValues();

            Assert.Equal(null, results);
        }
        public void FlushShouldReturnResultsWhenNotEmpty()
        {
            var monitor = new SyncMonitor();
            monitor.WriteValue("TestValue", 0);

            var results = monitor.GetAndFlushValues();

            Assert.NotEqual(null, results);
        }
        public void FlushShouldClearSyncListWhenCalled()
        {
            var monitor = new SyncMonitor();
            monitor.WriteValue("TestValue", 0);
            monitor.GetAndFlushValues();

            // Check that the internal list state is empty after this
            Assert.Equal(0, monitor.SyncValues.Count);
        }