public void GhostTest() { GhostA ghostA = new GhostA(); IGpiA gpiA = ghostA; IGhost ghost = ghostA; PropertyInfo addSupplyProperty = null; PassageCallback addSupplyPassage = null; ghost.AddSupplyNoitfierEvent += (property, passage) => { addSupplyProperty = property; addSupplyPassage = passage; }; IGpiB gPi = null; gpiA.GpiBs.Supply += (gpi) => { gPi = gpi; }; SoulB soulB = new SoulB(); addSupplyPassage(soulB); NUnit.Framework.Assert.AreEqual(soulB, gPi); }
public SoulA() { this.SoulB = new SoulB(); }