浏览代码

Cleanup code.

Dariusz Komosinski 5 年之前
父节点
当前提交
992ced0c9c
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7 4
      tests/Avalonia.Benchmarks/Layout/CalendarBenchmark.cs

+ 7 - 4
tests/Avalonia.Benchmarks/Layout/CalendarBenchmark.cs

@@ -6,19 +6,22 @@ using BenchmarkDotNet.Attributes;
 
 
 namespace Avalonia.Benchmarks.Layout
 namespace Avalonia.Benchmarks.Layout
 {
 {
-    [MemoryDiagnoser, InProcess, IterationCount(16)]
+    [MemoryDiagnoser]
     public class CalendarBenchmark : IDisposable
     public class CalendarBenchmark : IDisposable
     {
     {
         private readonly IDisposable _app;
         private readonly IDisposable _app;
         private readonly TestRoot _root;
         private readonly TestRoot _root;
-        
+
         public CalendarBenchmark()
         public CalendarBenchmark()
         {
         {
-            _app = UnitTestApplication.Start(TestServices.StyledWindow.With(renderInterface: new NullRenderingPlatform(), threadingInterface: new NullThreadingPlatform()));
+            _app = UnitTestApplication.Start(
+                TestServices.StyledWindow.With(
+                    renderInterface: new NullRenderingPlatform(),
+                    threadingInterface: new NullThreadingPlatform()));
 
 
             _root = new TestRoot(true, null)
             _root = new TestRoot(true, null)
             {
             {
-                Renderer = new NullRenderer(),
+                Renderer = new NullRenderer()
             };
             };
 
 
             _root.LayoutManager.ExecuteInitialLayoutPass(_root);
             _root.LayoutManager.ExecuteInitialLayoutPass(_root);