public void AddNotesToTrap() { DiceCup.SetRandom(new Random(700)); var architect = new TrapArchitect(); var trapBase = architect.GetTrapBaseFactory(); var trapEffect = architect.GetTrapEffectFactory(); var trapDamage = architect.GetTrapDamageFactory(); var trap = new Trap(trapBase, trapEffect, trapDamage); trap.AddNotes("This trap is a test of the note application system."); Approvals.Verify(trap); }
public void RandomFactoryTest() { DiceCup.SetRandom(new Random(100)); var architect = new TrapArchitect(); var effectList = new List <string>(); int repeat = 100; for (int i = 0; i < repeat; i++) { effectList.Add(architect.GetTrapEffectFactory()); } Approvals.VerifyAll(effectList, "Traps"); }
public void RandomTrapConstructionTest() { DiceCup.SetRandom(new Random(200)); var architect = new TrapArchitect(); var traps = new List <string>(); var iterator = 100; for (int i = 0; i < iterator; i++) { var sb = new StringBuilder(); sb.AppendLine(architect.GetTrapBaseFactory()); sb.AppendLine(architect.GetTrapEffectFactory()); sb.AppendLine(architect.GetTrapDamageFactory()); traps.Add(sb.ToString()); } Approvals.VerifyAll(traps, "Traps"); }
public string GetTrapEffects() { return(trapArchitect.GetTrapEffectFactory()); }