From 1a39210febf92e9e87b3ebacca9b56d99e660913 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sat, 30 Jan 2021 17:05:33 +0100 Subject: [PATCH] Fix ncrunch. --- .ncrunch/Avalonia.MicroCom.v3.ncrunchproject | 4 +--- .ncrunch/Avalonia.Win32.v3.ncrunchproject | 3 +++ .ncrunch/Direct3DInteropSample.v3.ncrunchproject | 1 + .../Converters/PointsListTypeConverterTests.cs | 7 +++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.ncrunch/Avalonia.MicroCom.v3.ncrunchproject b/.ncrunch/Avalonia.MicroCom.v3.ncrunchproject index 319cd523cec..95a483b4330 100644 --- a/.ncrunch/Avalonia.MicroCom.v3.ncrunchproject +++ b/.ncrunch/Avalonia.MicroCom.v3.ncrunchproject @@ -1,5 +1,3 @@  - - True - + \ No newline at end of file diff --git a/.ncrunch/Avalonia.Win32.v3.ncrunchproject b/.ncrunch/Avalonia.Win32.v3.ncrunchproject index e12537d5353..a764f36a246 100644 --- a/.ncrunch/Avalonia.Win32.v3.ncrunchproject +++ b/.ncrunch/Avalonia.Win32.v3.ncrunchproject @@ -1,5 +1,8 @@  + + ..\..\tools\MicroComGenerator\bin\Debug\netcoreapp3.1\**.* + MissingOrIgnoredProjectReference diff --git a/.ncrunch/Direct3DInteropSample.v3.ncrunchproject b/.ncrunch/Direct3DInteropSample.v3.ncrunchproject index e12537d5353..21fcdee3a65 100644 --- a/.ncrunch/Direct3DInteropSample.v3.ncrunchproject +++ b/.ncrunch/Direct3DInteropSample.v3.ncrunchproject @@ -3,6 +3,7 @@ MissingOrIgnoredProjectReference + True True \ No newline at end of file diff --git a/tests/Avalonia.Markup.Xaml.UnitTests/Converters/PointsListTypeConverterTests.cs b/tests/Avalonia.Markup.Xaml.UnitTests/Converters/PointsListTypeConverterTests.cs index 3b729e9cd80..4dada1313e5 100644 --- a/tests/Avalonia.Markup.Xaml.UnitTests/Converters/PointsListTypeConverterTests.cs +++ b/tests/Avalonia.Markup.Xaml.UnitTests/Converters/PointsListTypeConverterTests.cs @@ -1,5 +1,7 @@ using System.Collections.Generic; +using System.Runtime.CompilerServices; using Avalonia.Controls.Shapes; +using Avalonia.Data; using Avalonia.Markup.Xaml.Converters; using Xunit; @@ -7,6 +9,11 @@ namespace Avalonia.Markup.Xaml.UnitTests.Converters { public class PointsListTypeConverterTests { + static PointsListTypeConverterTests() + { + RuntimeHelpers.RunClassConstructor(typeof(RelativeSource).TypeHandle); + } + [Theory] [InlineData("1,2 3,4")] [InlineData("1 2 3 4")]