Esempio n. 1
0
        public void WhileUpdating_IsUpdatingReturnsTrue()
        {
            ReactiveManipulator <int> manipulator = new ReactiveManipulator <int>(42);

            using (manipulator.PutReactiveIntoUpdatingState())
            {
                Assert.That(manipulator.Reactive.IsUpdating, $"{NameOf<Reactive<int>>()}.{nameof(Reactive<int>.IsUpdating)} was false during its update. ");
                TestContext.WriteLine($"{nameof(Reactive<int>.IsUpdating)} was {manipulator.Reactive.IsUpdating}. ");
            }
        }
Esempio n. 2
0
        public void WhileUpdating_IsInvalid()
        {
            ReactiveManipulator <int> manipulator = new ReactiveManipulator <int>(42);

            using (manipulator.PutReactiveIntoUpdatingState())
            {
                Assert.That(manipulator.Reactive.IsValid, Is.False,
                            $"{NameOf<Reactive<int>>()}.{nameof(Reactive<int>.IsValid)} was true during its update. ");
                TestContext.WriteLine($"{nameof(Reactive<int>.IsValid)} was {manipulator.Reactive.IsValid}. ");
            }
        }
Esempio n. 3
0
 public UpdateToken(ReactiveManipulator <T> reactiveManipulator)
 {
     creator = reactiveManipulator;
 }