Exemplo n.º 1
0
        public void UpdateForce_WhenASpringIsCompressed_TheForceGeneratorAppliesAForceToTheEndOfTheSpring()
        {
            MockParticle.Setup(p => p.AddForce(new Vector3(4.5, 2.25, -4.5)));
            var forceGenerator = new SpringForceGenerator(MockOtherParticle.Object, 1.5, 13.5);

            forceGenerator.UpdateForce(MockParticle.Object, 1.0);
        }
Exemplo n.º 2
0
        public void UpdateForce_WhenABungeeIsExpanded_TheForceGeneratorAppliesAForceToTheEndOfTheBungee()
        {
            MockParticle.Setup(p => p.AddForce(new Vector3(-4.5, -2.25, 4.5)));
            var forceGenerator = new SpringForceGenerator(MockOtherParticle.Object, 1.5, 4.5, true);

            forceGenerator.UpdateForce(MockParticle.Object, 1.0);
        }
Exemplo n.º 3
0
 public void TestCleanup()
 {
     MockParticle.VerifyAll();
     MockOtherParticle.VerifyAll();
 }