public void SingleRecordValidationPassStructTest() { var record = new SingleRecordTestDataStruct1(1, "TestData2", SingleRecordTestDataCategory.Category1); var results = DataValidator.ValidateRecord(record); Assert.AreEqual(results.Count(), 0); }
public void SingleRecordValidationErrorStructTest() { var record = new SingleRecordTestDataStruct1(0, "", SingleRecordTestDataCategory.Default); var results = DataValidator.ValidateRecord(record); // 3 = id, name, category Assert.AreEqual(results.Count(), 3); Debug.Log($"Messages: {string.Join(",", results.Select(e => e.Message))}"); }