Beispiel #1
0
        public void CanGetUserRegisteredLinkedServiceCaseInsensitive()
        {
            this.Client.RegisterType <MyLinkedServiceType>(true);

            string typeName;

            RegistrationTestUtilities.TestCanGetRegisteredLinkedServiceCaseInsensitive <MyLinkedServiceType>(out typeName);

            Type type;

            Assert.True(this.Operations.Converter.TryGetRegisteredType(typeName, out type));
            Assert.Equal(typeof(MyLinkedServiceType), type);
        }
        internal void TestCanGetRegisteredTypeCaseInsensitive
        <TCore, TWrapper>(
            CoreTypeConverter <TCore, TWrapper, TRegistered, TGenericTypeProperties> converter,
            Type objectType)
        {
            if (objectType == typeof(TGenericTypeProperties) || objectType == typeof(CustomActivity))
            {
                return;
            }

            string typeName;

            RegistrationTestUtilities.TestCanGetRegisteredLinkedServiceCaseInsensitive(objectType, out typeName);

            Type type;

            Assert.True(converter.TryGetRegisteredType(typeName, out type));
            Assert.Equal(objectType, type);
        }