From 268e5ee549879e3fdc279119de05f6742ee68e2c Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sun, 17 Feb 2019 23:53:06 +0100 Subject: [PATCH] Fix failing test. --- .../RemoteProtocolTests.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Avalonia.DesignerSupport.Tests/RemoteProtocolTests.cs b/tests/Avalonia.DesignerSupport.Tests/RemoteProtocolTests.cs index e5a477cc32..4264559ab6 100644 --- a/tests/Avalonia.DesignerSupport.Tests/RemoteProtocolTests.cs +++ b/tests/Avalonia.DesignerSupport.Tests/RemoteProtocolTests.cs @@ -9,6 +9,7 @@ using System.Reflection; using System.Threading; using System.Threading.Tasks; using Avalonia.Remote.Protocol; +using Avalonia.Remote.Protocol.Designer; using Avalonia.Remote.Protocol.Viewport; using Xunit; @@ -109,6 +110,16 @@ namespace Avalonia.DesignerSupport.Tests return Guid.NewGuid().ToString(); if (t == typeof(Guid)) return Guid.NewGuid(); + if (t == typeof(Exception)) + return new Exception("Here"); + if (t == typeof(ExceptionDetails)) + return new ExceptionDetails + { + ExceptionType = "Exception", + LineNumber = 5, + LinePosition = 6, + Message = "Here", + }; throw new Exception($"Doesn't know how to fabricate a random value for {t}, path {pathInfo}"); }