public void VFBGetsPowertrainPacketAfterCreatingPowertrainComponent()
        {
            VirtualFunctionBus  virtualFunctionBus = new VirtualFunctionBus();
            PowertrainComponent powertrain         = new PowertrainComponent(virtualFunctionBus);

            Assert.True(virtualFunctionBus.PowertrainPacket != null);
        }
        public void PowertrainAutomaticallyGetsRegisteredToVFB()
        {
            Mock <IVirtualFunctionBus> mockBus = new Mock <IVirtualFunctionBus>();
            PowertrainComponent        ptr     = new PowertrainComponent(mockBus.Object);

            mockBus.Verify(m => m.RegisterComponent(ptr), Times.Once);
        }