mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
adding HasError method (#2185)
Makes it easier to write error message within weaver tests because there is mess syntax to worry about
This commit is contained in:
parent
9ec5eadd51
commit
f1d7f207c3
@ -16,6 +16,11 @@ public void TestSetup()
|
|||||||
|
|
||||||
BuildAndWeaveTestAssembly(className, TestContext.CurrentContext.Test.Name);
|
BuildAndWeaveTestAssembly(className, TestContext.CurrentContext.Test.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void HasError(string messsage, string atType)
|
||||||
|
{
|
||||||
|
Assert.That(weaverErrors, Contains.Item($"{messsage} (at {atType})"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[Category("Weaver")]
|
[Category("Weaver")]
|
||||||
|
Loading…
Reference in New Issue
Block a user