// ReSharper disable InconsistentNaming public void CEventHelper_RemoveAll_Static_ExpectNothingRemoved() // ReSharper restore InconsistentNaming { //------------Setup for test-------------------------- BobEvent.GloabalBuild += BobDomorebuilding; BobEvent.GloabalBuild += BobDobuilding; _i = 0; //------------Execute Test--------------------------- BobEvent.DoSomeThingElse(); Assert.AreEqual(_i, 2); var bob = new BobEvent(); CEventHelper.RemoveAllEventHandlers(bob); BobEvent.DoSomeThingElse(); //------------Assert Results------------------------- Assert.AreEqual(_i, 4); }