public void InvokingTheMethodReturnedFromGetUnlockMethodUnlocksTheValue() { var semimutable = new Semimutable <int>(1); semimutable.LockValue(); var unlockValue = semimutable.GetUnlockValueMethod(); unlockValue.Invoke(semimutable, null); Assert.False(semimutable.IsLocked); semimutable.Value = 2; Assert.Equal(2, semimutable.Value); }
internal static void UnlockExtraPrimitivishTypes() { _extraPrimitivishTypes.GetUnlockValueMethod().Invoke(_extraPrimitivishTypes, null); }
internal static void UnlockKeyValueStore() { _keyValueStore.GetUnlockValueMethod().Invoke(_keyValueStore, null); }
internal static void UnlockConverter() { _converter.GetUnlockValueMethod().Invoke(_converter, null); }
internal static void UnlockDefaultResolverConstructorSelector() { _defaultResolverConstructorSelector.GetUnlockValueMethod().Invoke(_defaultResolverConstructorSelector, null); }
internal static void UnlockBackgroundErrorLogFactory() { _backgroundErrorLogFactory.GetUnlockValueMethod().Invoke(_backgroundErrorLogFactory, null); }
internal static void UnlockCurrent() { _current.GetUnlockValueMethod().Invoke(_current, null); }