Beispiel #1
0
        public void LogOneGauge_OneGraphiteLine_Success()
        {
            _block.Post(new Gauge("foo", 1));
            _block.WaitUntilAllItemsProcessed();
            _intervalService.Pulse();
            _block.CompleteAndWait();

            Assert.AreEqual(1, _outputBuffer.Items.Count);
            Assert.AreEqual(1, _outputBuffer["foo"]);
        }
Beispiel #2
0
        public void LogOneSet_OneGraphiteLine_NoTimeChange_NoOutput_Success()
        {
            _block.Post(new Calendargram("foo.set", "baz", "h"));
            _block.WaitUntilAllItemsProcessed();
            _intervalService.Pulse();
            _block.CompleteAndWait();

            Assert.AreEqual(0, _outputBuffer.Items.Count);
        }