diff --git a/unity/Tests/Editor/Components/MjActuatorTests.cs b/unity/Tests/Editor/Components/MjActuatorTests.cs index 175a59f4..437674b1 100644 --- a/unity/Tests/Editor/Components/MjActuatorTests.cs +++ b/unity/Tests/Editor/Components/MjActuatorTests.cs @@ -279,19 +279,22 @@ public class MjPositionActuatorTests { Assert.That(_doc.OuterXml, Does.Contain($""); + _doc.LoadXml(""); _actuator.ParseMjcf(_doc.GetElementsByTagName("position")[0] as XmlElement); Assert.That(_actuator.CustomParams.Kp, Is.EqualTo(2)); + Assert.That(_actuator.CustomParams.Kvp, Is.EqualTo(1)); } [Test] @@ -299,6 +302,7 @@ public class MjPositionActuatorTests { _doc.LoadXml(""); _actuator.ParseMjcf(_doc.GetElementsByTagName("position")[0] as XmlElement); Assert.That(_actuator.CustomParams.Kp, Is.EqualTo(1)); + Assert.That(_actuator.CustomParams.Kvp, Is.EqualTo(0)); } }