public void ExpectedFalse_ActualFalse() { var vm = new BooleanModel {WannaTrue = false}; var validations = vm.Validate(vm.WannaFalse, _wannaFalse); validations.Print(_output); Assert.Empty(validations); }
public void ExpectedFalse_ActualTrue() { var vm = new BooleanModel {WannaFalse = true}; var validations = vm.Validate(vm.WannaFalse, _wannaFalse); validations.Print(_output); Assert.Collection(validations, v => v.ErrorMessage = "Unchecked is required"); }