public void SetInvalidName_SadPath(string className) { ReactiveLeveling.Pathfinder.Character testChar = new ReactiveLeveling.Pathfinder.Character(); testChar.SetClassType(className); Assert.AreNotEqual(testChar.statMgr.classMngr.Class.classFortSave, 2, "FortSave SadPath Failed. (Returned expected Values)"); Assert.AreNotEqual(testChar.statMgr.classMngr.Class.classRefSave, 1, "RefSave SadPath Failed. (Returned expected Values)"); Assert.AreNotEqual(testChar.statMgr.classMngr.Class.classWillSave, 1, "WillSave SadPath Failed. (Returned expected Values)"); }
public void SetClassAndValues_HappyPath(string className, int fort, int reflex, int will) { ReactiveLeveling.Pathfinder.Character testChar = new ReactiveLeveling.Pathfinder.Character(); testChar.SetClassType(className); Assert.AreEqual(testChar.statMgr.classMngr.Class.classFortSave, fort, "[ " + className + " test failed] FortSave is not equal to expected value"); Assert.AreEqual(testChar.statMgr.classMngr.Class.classRefSave, reflex, "[ " + className + " test failed] RefSave is not equal to expected value"); Assert.AreEqual(testChar.statMgr.classMngr.Class.classWillSave, will, "[ " + className + " test failed] WillSave is not equal to expected value"); }
public void SetInvalidValues_SadPath(int fort, int reflex, int will) { ReactiveLeveling.Pathfinder.Character testChar = new ReactiveLeveling.Pathfinder.Character(); testChar.SetClassType("Barbarian"); Assert.AreNotEqual(testChar.statMgr.classMngr.Class.classFortSave, fort, "FortSave SadPath Failed. (Returned expected Values)"); Assert.AreNotEqual(testChar.statMgr.classMngr.Class.classRefSave, reflex, "RefSave SadPath Failed. (Returned expected Values)"); Assert.AreNotEqual(testChar.statMgr.classMngr.Class.classWillSave, will, "WillSave SadPath Failed. (Returned expected Values)"); }