예제 #1
0
        public void ClickingButton()
        {
            var sut = new Button();

            for (int i = 0; i < 10; i++)
            {
                var veryFirst = GC.GetTotalMemory(true);
                for (int j = 0; j < 500; j++)
                {
                    sut.OnClick();
                }
                GC.Collect();
                var veryLast = GC.GetTotalMemory(true);

                Trace.WriteLine("*** veryFirst=" + veryFirst);
                Trace.WriteLine("*** veryLast =" + veryLast);
                var diff = veryLast - veryFirst;
                Trace.WriteLine("*** diff     =" + diff);
            }
        }
예제 #2
0
파일: Fixture.cs 프로젝트: baens/Esri2011
 public void Do()
 {
     var sut = new Button();
     sut.OnClick();
 }