diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverTests.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverTests.cs index 6d920a8f2..da77d901d 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverTests.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverTests.cs @@ -16,6 +16,11 @@ public void TestSetup() BuildAndWeaveTestAssembly(className, TestContext.CurrentContext.Test.Name); } + + protected void HasError(string messsage, string atType) + { + Assert.That(weaverErrors, Contains.Item($"{messsage} (at {atType})")); + } } [TestFixture] [Category("Weaver")]