Dev2.Activities.Designers.Tests.BobEvent.DoSomeThingElse C# (CSharp) Method

DoSomeThingElse() public static method

public static DoSomeThingElse ( ) : void
return void
        public static void DoSomeThingElse()
        {
            OnGloabalBuild(new BuildArgs());
        }
        

Usage Example

// 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);
        }