コード例 #1
0
        /// <summary>
        /// Handles a <see cref="EvaluationStatisticRequest"/> sent by a certain actor.
        /// </summary>
        /// <param name="sender">The sender.</param>
        private void HandleEvaluationStatisticRequest(IActorRef sender)
        {
            var statistic = new EvaluationStatistic(
                configurationCount: this._runResults.Count,
                totalEvaluationCount: this._runResults.Sum(configurationResults => configurationResults.Value.Count));

            sender.Tell(statistic);
        }
コード例 #2
0
        public void ConfigurationCountIsSetCorrectly()
        {
            var message = new EvaluationStatistic(configurationCount: 3, totalEvaluationCount: 45);

            Assert.Equal(3, message.ConfigurationCount);
        }