示例#1
0
        public void GetValidationResult_Initially_ReturnsValidResults()
        {
            var vm = new TestVM();

            ParameterizedTest
            .TestCase(ValidationResultScope.PropertiesOnly)
            .TestCase(ValidationResultScope.ViewModelValidationsOnly)
            .TestCase(ValidationResultScope.Self)
            .TestCase(ValidationResultScope.Descendants)
            .TestCase(ValidationResultScope.All)
            .Run(scope => {
                var result = vm
                             .Behavior
                             .GetValidationResult(vm.GetContext(), scope);

                ValidationAssert.IsValid(result);
            });
        }