public void Set_HeartBeatQueueMax_WhenReadOnly_Fails(HeartBeatThreadPoolConfiguration configuration, int value)
        {
            configuration.SetReadOnly();

            Assert.Throws <InvalidOperationException>(
                delegate
            {
                configuration.QueueMax = value;
            });
        }
        public void Set_WaitForThreadPoolToFinish_WhenReadOnly_Fails(HeartBeatThreadPoolConfiguration configuration, int value)
        {
            configuration.SetReadOnly();

            Assert.Throws <InvalidOperationException>(
                delegate
            {
                configuration.WaitForThreadPoolToFinish = TimeSpan.FromSeconds(value);
            });
        }
 public void Set_Readonly(HeartBeatThreadPoolConfiguration configuration)
 {
     configuration.SetReadOnly();
     Assert.True(configuration.IsReadOnly);
 }