Пример #1
0
        public PDPTest(Type type, double expectedCurrentDraw)
        {
            MotorEncoderFixture mef = (MotorEncoderFixture)Activator.CreateInstance(type);

            if (fixture != null && !fixture.Equals(mef))
            {
                fixture.Teardown();
            }
            fixture = mef;
            fixture.Setup();

            this.expectedStoppedCurrentDraw = expectedCurrentDraw;
        }
Пример #2
0
        public MotorInvertingTest(Type type)
        {
            if (RobotBase.IsSimulation)
            {
                return;
            }
            MotorEncoderFixture mef = (MotorEncoderFixture)Activator.CreateInstance(type);

            if (fixture != null && !fixture.Equals(mef))
            {
                fixture.Teardown();
            }
            fixture = mef;
            fixture.Setup();
        }