Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 84891a00 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

gearbox test gear 0 (no gear set)

parent 38ee5c39
Branches
Tags
No related merge requests found
......@@ -278,16 +278,14 @@ namespace TUGraz.VectoCore.Tests.Models.SimulationComponent
gearbox.InPort().Connect(port);
container.Gear = 0;
var response = gearbox.OutPort().Request(0.SI<Second>(), 1.SI<Second>(), 500.SI<NewtonMeter>(), 1000.SI<PerSecond>());
var response = gearbox.OutPort()
.Request(0.SI<Second>(), 1.SI<Second>(), 50000000.SI<NewtonMeter>(), 1000000.SI<PerSecond>());
Assert.AreEqual(response.ResponseType, ResponseType.Success);
AssertHelper.AreRelativeEqual(0.SI<Second>(), port.AbsTime);
AssertHelper.AreRelativeEqual(1.SI<Second>(), port.Dt);
AssertHelper.AreRelativeEqual(0.SI<PerSecond>(), port.AngularVelocity);
AssertHelper.AreRelativeEqual(0.SI<NewtonMeter>(), port.Torque);
Assert.Inconclusive();
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment