public void SanityCheck()
 {
     try{
         GameObject control = new GameObject();
         control.AddComponent <Motion3DVectorField>();
         Motion3DVectorField sim = control.GetComponent <Motion3DVectorField>();
         sim.Start();
     }
     catch (Exception e) {
         Debug.LogAssertion(e);
         Assert.IsTrue(false);
     }
 }
    public void ToggleVectorField()
    {
        GameObject control = new GameObject();

        control.AddComponent <Motion3DVectorField>();
        Motion3DVectorField sim = control.GetComponent <Motion3DVectorField>();

        sim.Start();
        sim.InitializeVectorField();
        sim.Update();

        ToggleVectorField();
        Assert.AreEqual(sim.vectorField, 1);
    }
    public void DecreaseSpacing()
    {
        GameObject control = new GameObject();

        control.AddComponent <Motion3DVectorField>();
        Motion3DVectorField sim = control.GetComponent <Motion3DVectorField>();

        sim.Start();
        sim.InitializeVectorField();
        sim.Update();

        sim.DecreaseSpacing();
        Assert.IsFalse(Mathf.Approximately(sim.vectorField, 3f));
    }
 public void UpdateWithVectorField1()
 {
     try{
         GameObject control = new GameObject();
         control.AddComponent <Motion3DVectorField>();
         Motion3DVectorField sim = control.GetComponent <Motion3DVectorField>();
         sim.Start();
         sim.InitializeVectorField();
         sim.vectorField = 1;
         sim.Update();
     }
     catch (Exception e) {
         Debug.LogAssertion(e);
         Assert.IsTrue(false);
     }
 }