internal Stats(bool enabled) { if (enabled) { this.statsComponent = new StatsComponent(); } else { this.statsComponent = NoopStats.NewNoopStatsComponent(); } }
public void NoopStatsComponent_GetState() { Assert.Equal(StatsCollectionState.DISABLED, NoopStats.NewNoopStatsComponent().State); }
public void NoopStatsComponent() { Assert.Same(NoopStats.NoopStatsRecorder, NoopStats.NewNoopStatsComponent().StatsRecorder); Assert.Equal(NoopStats.NewNoopViewManager().GetType(), NoopStats.NewNoopStatsComponent().ViewManager.GetType()); }