/// <summary> /// Проверка логики для VariableDefToSimpleValueTest. /// </summary> /// <param name="objType"> /// Проверяемый тип. /// </param> /// <param name="typeName"> /// Название типа. /// </param> /// <returns> /// Возвращает true если тест прошел. /// </returns> private bool VariableDefToSimpleValue(ObjectType objType, string typeName) { var result = false; string objectStringView = "TestStirngView"; string objectCaption = "TestObjectCaption"; VariableDef variableDef = new VariableDef(objType, objectStringView, objectCaption); var resultToSimpleValue = (string[])variableDef.ToSimpleValue(); if (resultToSimpleValue.Length == 3 && resultToSimpleValue[0] == typeName && resultToSimpleValue[1] == objectStringView && resultToSimpleValue[2] == objectCaption) { result = true; } return(result); }