public static void Synchronizer_ItemEnabled(ISynchronizer <TState> syncronizer) { Mock_SynchronizerItem <TState> item_1 = new Mock_SynchronizerItem <TState>(); syncronizer.Add(item_1); AssertState(syncronizer, 1, 0, false); item_1.Enable(); AssertState(syncronizer, 1, 1, true); }
public static void Synchronizer_UnSubscribeAfterClear(ISynchronizer <TState> syncronizer) { Assert.Inconclusive(); Mock_SynchronizerItem <TState> item_1 = new Mock_SynchronizerItem <TState>(); syncronizer.Add(item_1); AssertState(syncronizer, 1, 0, false); item_1.Enable(); AssertState(syncronizer, 1, 1, true); }