//* Private Properties private void testValidValidation(string independent, string dependent) { var test = new PropertyValueMatchTestClass(independent, dependent); Assert.IsTrue(test.Validate()); Assert.IsTrue(test.Errors.Count == 0); }
private void testInvalidValidation(string independent, string dependent) { var test = new PropertyValueMatchTestClass(independent, dependent); Assert.IsFalse(test.Validate()); Assert.IsTrue(test.Errors.Count == 1); Assert.IsTrue(test.Errors[0] == $"{nameof(test.Dependent)} does not match" + $" {nameof(test.Independent)}"); }