public void Set_HeartBeatThreadsMin_WhenReadOnly_Fails(HeartBeatThreadPoolConfiguration configuration, int value) { configuration.SetReadOnly(); Assert.Throws<InvalidOperationException>( delegate { configuration.ThreadsMin = value; }); }
public void Set_HeartBeatThreadIdleTimeout_WhenReadOnly_Fails(HeartBeatThreadPoolConfiguration configuration, int value) { configuration.SetReadOnly(); Assert.Throws<InvalidOperationException>( delegate { configuration.ThreadIdleTimeout = TimeSpan.FromSeconds(value); }); }
public void Set_Readonly(HeartBeatThreadPoolConfiguration configuration) { configuration.SetReadOnly(); Assert.Equal(true, configuration.IsReadOnly); }