public void CompareObject() { var oOldRecord = new EmployeeRecord { EmployeeNumber = 1 }; var oNewRecord = new EmployeeRecord { EmployeeNumber = 2, CompanyNumber = 3 }; var result = CompareUtility.CompareObject(oOldRecord, oNewRecord); var assert = new List <string> { "Property EmployeeNumber was: 1; is: 2", "Property CompanyNumber was: 0; is: 3" }; Assert.IsTrue(assert.All(result.Contains) && assert.Count == result.Count); }