Esempio n. 1
0
        public static CCharacterDescr CreateTestObject()
        {
            var descr = new CCharacterDescr("TestCharDescr");

            descr._mover_descr = CMoverDescr.CreateTestObject();
            descr._brain_descr = CAIBrainDescr.CreateTestObject();

            return(descr);
        }
Esempio n. 2
0
        public void TestMethodCharacterDescr()
        {
            ResetTestState();
            Console.WriteLine(MethodBase.GetCurrentMethod().Name);
            var v1 = CCharacterDescr.CreateTestObject();

            string text = _serializer.SerializeToCascade(v1, this);

            Console.WriteLine(text);
            var v2 = _serializer.Deserialize <CCharacterDescr>(text, this);

            CheckInternalErrors();
            Assert.AreEqual(v1, v2);
        }