Пример #1
0
        public void Initialize()
        {
            if (AssetManager.Instance.findAssetsByClass("MotivationAssessmentAsset").Count == 0)
            {
#warning change bridge implementation (in UnitTestMotivation/Bridge.cs) for testing (IDataStoragePath and ILog - logging behaviour)
                //Adding the bridge
                AssetManager.Instance.Bridge = new Bridge();

                //creating the asset
                MotivationAssessmentAsset    cia  = MotivationAssessmentAsset.Instance;
                MotivationBasedAdaptionAsset mbaa = MotivationBasedAdaptionAsset.Instance;
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            AssetManager am = AssetManager.Instance;

            am.Bridge = new Bridge();

            MotivationAssessmentAsset    masa = MotivationAssessmentAsset.Instance;
            MotivationBasedAdaptionAsset mada = MotivationBasedAdaptionAsset.Instance;

            TestMotivationAssessmentAsset tmasa = new TestMotivationAssessmentAsset();

            tmasa.performAllTests();

            TestMotivationBasedAdaptationAsset tmada = new TestMotivationBasedAdaptationAsset();

            tmada.performAllTests();

            Console.WriteLine("Press enter to exit...");
            Console.ReadLine();
        }