예제 #1
0
        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);
        }
예제 #2
0
 internal static void UnlockExtraPrimitivishTypes()
 {
     _extraPrimitivishTypes.GetUnlockValueMethod().Invoke(_extraPrimitivishTypes, null);
 }
예제 #3
0
 internal static void UnlockKeyValueStore()
 {
     _keyValueStore.GetUnlockValueMethod().Invoke(_keyValueStore, null);
 }
 internal static void UnlockConverter()
 {
     _converter.GetUnlockValueMethod().Invoke(_converter, null);
 }
예제 #5
0
 internal static void UnlockDefaultResolverConstructorSelector()
 {
     _defaultResolverConstructorSelector.GetUnlockValueMethod().Invoke(_defaultResolverConstructorSelector, null);
 }
예제 #6
0
 internal static void UnlockBackgroundErrorLogFactory()
 {
     _backgroundErrorLogFactory.GetUnlockValueMethod().Invoke(_backgroundErrorLogFactory, null);
 }
예제 #7
0
 internal static void UnlockCurrent()
 {
     _current.GetUnlockValueMethod().Invoke(_current, null);
 }