public void CreateJavaAndroidObject()
    {
        //Metodo start de CDAux llama a InstantiateJavaObject
        cdaux.InstantiateJavaObject("com.tfg.marta.androidplugin2.PluginClass");

        Assert.That(cdaux.javaObject.GetRawClass(), Is.EqualTo(javaobjAux.GetRawClass()));
    }
Example #2
0
    public void StartCountdown()
    {
        //Inicializar objetos android
        cdaux.InstantiateJavaObject("com.tfg.marta.androidplugin2.PluginClass");
        cdaux.SendActivityReference("com.tfg.marta.androidplugin2.PluginClass");

        //Inicializar el slider y ponerle un valor (1 minuto)
        CrearSlider(1.0f);

        //Ejecutar metodo startCDT
        cdaux.StartCDT();

        //Comprobar que countdownstarted es true
        Assert.That(cdaux.countdownStarted, Is.True);

        //Comprobar que se ha creado la entity
        bool entityExists = World.Active.GetOrCreateManager <EntityManager>().Exists(cdaux.countdownEntity);

        Assert.That(entityExists, Is.True);
    }