예제 #1
0
        public void TestStoreData()
        {
            AssetsDataManager dataManager = new AssetsDataManager();

            dataManager.AddAsset("Skill", "Type", "ID0", 0, 0, 0);
            dataManager.AddAsset("Skill", "Type2", "ID1", 0, 0, 0);
            MockDataStorageDelegate storage = new MockDataStorageDelegate();

            dataManager.StoreData(storage);
            Assert.AreEqual(2, storage.callCount);
        }
예제 #2
0
        public void TestStoreData()
        {
            MockDataStorageDelegate mdsd = new MockDataStorageDelegate();
            DefaultITAEngineManager iem  = new DefaultITAEngineManager();

            iem.AssociateAssessmentProblemWithSkill("1", "groupID", "1", 0, 1, 0xDEADBEEF);
            iem.StoreData(mdsd);
            Assert.IsTrue(mdsd.countProbData.Equals(1));
            Assert.IsTrue(mdsd.countAssetData.Equals(0));
            Assert.IsTrue(mdsd.countSkillClear.Equals(0));
        }