Example #1
0
        public void Should_Register_Multiple_Events()
        {
            var recorder = new EventRecorder(this, string.Empty);

            recorder.RecordEvent();
            recorder.RecordEvent();

            Assert.Equal(2, recorder.Count());
        }
Example #2
0
        public void Should_Register_Events_Parameters()
        {
            var recorder = new EventRecorder(this, string.Empty);

            recorder.RecordEvent(3, 8, "some info");

            Assert.Equal(3, recorder.ElementAt(0).Parameters[0]);
            Assert.Equal(8, recorder.ElementAt(0).Parameters[1]);
            Assert.Equal("some info", recorder.ElementAt(0).Parameters[2]);
        }