Browse Source

Added failing test for #2335.

Steven Kirk 6 years ago
parent
commit
1d8bf77ab1
1 changed files with 16 additions and 0 deletions
  1. 16 0
      tests/Avalonia.Controls.UnitTests/Shapes/PathTests.cs

+ 16 - 0
tests/Avalonia.Controls.UnitTests/Shapes/PathTests.cs

@@ -0,0 +1,16 @@
+using Avalonia.Controls.Shapes;
+using Xunit;
+
+namespace Avalonia.Controls.UnitTests.Shapes
+{
+    public class PathTests
+    {
+        [Fact]
+        public void Path_With_Null_Data_Does_Not_Throw_On_Measure()
+        {
+            var target = new Path();
+
+            target.Measure(Size.Infinity);
+        }
+    }
+}