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