Ejemplo n.º 1
0
        public void RandomBoolTest()
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();
            var result = new List <bool>();

            for (int i = 0; i < 100; i++)
            {
                var value = FakeUtility.RandomBool();
                result.Add(value);
            }
            sw.Stop();
            Trace.WriteLine("耗时:" + sw.Elapsed);
            foreach (var item in result)
            {
                Trace.WriteLine(item);
            }
        }