SenseNet.ContentRepository.Tests.FieldTest.CheckTypes C# (CSharp) Метод

CheckTypes() приватный Метод

private CheckTypes ( Type fieldType, Type expectedType, string &message ) : bool
fieldType System.Type
expectedType System.Type
message string
Результат bool
        private bool CheckTypes(Type fieldType, Type expectedType, out string message)
        {
            message = "";
            Type resultType = GetDefaultControl(fieldType).GetType();
            if (resultType == expectedType)
                return true;
            message = String.Concat(fieldType.Name, ": expected ", expectedType.Name, " but ", resultType.Name);
            return false;
        }
        private FieldControl GetDefaultControl(Type fieldType)
FieldTest