Example #1
0
        public void GeneratePersonValCollectionTest()
        {
            var result = RandomData.GeneratePersonValCollection(1000);

            Assert.IsTrue(result.FastCount() == 1000);

            Assert.IsTrue(result.ToDictionary(item => item.Id).FastCount() == 1000);
        }
        /// <summary>
        /// Loads the person value array.
        /// </summary>
        protected void LoadPersonValArray()
        {
            this._personValArray = RandomData.GeneratePersonValCollection(this.MaxCount).ToArray();
            ConsoleLogger.Default.WriteLine($"{nameof(this._personValArray)} Length = {this._personValArray.Length}.");

            this._personValArrayHalf = RandomData.GeneratePersonValCollection(this.MaxCount / 2).ToArray();
            ConsoleLogger.Default.WriteLine($"{nameof(this._personValArrayHalf)} Length = {this._personValArrayHalf.Length}.");
        }