public void Create_DateTime_ConvertThrowsIfNullValue()
        {
            // Act
            IConverter <EntityProperty, DateTime> converter = EntityPropertyToTConverterFactory.Create <DateTime>();

            // Assert
            AssertConvertThrowsIfNullValue(converter, EntityProperty.GeneratePropertyForDateTimeOffset(null));
        }
        public void Create_String_ConvertThrowsIfPropertyTypeMismatches()
        {
            // Act
            IConverter <EntityProperty, string> converter = EntityPropertyToTConverterFactory.Create <string>();

            // Assert
            AssertConvertThrowsIfPropertyTypeMismatches(converter, "String");
        }
        public void Create_OtherType_ConvertThrowsIfPropertyTypeMismatches()
        {
            // Act
            IConverter <EntityProperty, Poco> converter = EntityPropertyToTConverterFactory.Create <Poco>();

            // Assert
            AssertConvertThrowsIfPropertyTypeMismatches(converter, "String");
        }
        public void Create_NullableEnum_CanConvertNullValue()
        {
            // Act
            IConverter <EntityProperty, AnEnum?> converter = EntityPropertyToTConverterFactory.Create <AnEnum?>();

            // Assert
            AssertCanConvertNullValue(converter, EntityProperty.GeneratePropertyForString(null));
        }
        public void Create_NullableEnum_ConvertThrowsIfPropertyTypeMismatches()
        {
            // Act
            IConverter <EntityProperty, AnEnum?> converter = EntityPropertyToTConverterFactory.Create <AnEnum?>();

            // Assert
            AssertConvertThrowsIfPropertyTypeMismatches(converter, "String");
        }
        public void Create_Boolean_ConvertThrowsIfNullValue()
        {
            // Act
            IConverter <EntityProperty, bool> converter = EntityPropertyToTConverterFactory.Create <bool>();

            // Assert
            AssertConvertThrowsIfNullValue(converter, EntityProperty.GeneratePropertyForBool(null));
        }
        public void Create_NullableInt64_ConvertThrowsIfNullProperty()
        {
            // Act
            IConverter <EntityProperty, long?> converter = EntityPropertyToTConverterFactory.Create <long?>();

            // Assert
            AssertConvertThrowsIfNullProperty(converter);
        }
        public void Create_NullableDouble_ConvertThrowsIfPropertyTypeMismatches()
        {
            // Act
            IConverter <EntityProperty, double?> converter = EntityPropertyToTConverterFactory.Create <double?>();

            // Assert
            AssertConvertThrowsIfPropertyTypeMismatches(converter, "Double");
        }
        public void Create_Guid_ConvertThrowsIfNullProperty()
        {
            // Act
            IConverter <EntityProperty, Guid> converter = EntityPropertyToTConverterFactory.Create <Guid>();

            // Assert
            AssertConvertThrowsIfNullProperty(converter);
        }
        public void Create_Double_ConvertThrowsIfNullValue()
        {
            // Act
            IConverter <EntityProperty, double> converter = EntityPropertyToTConverterFactory.Create <double>();

            // Assert
            AssertConvertThrowsIfNullValue(converter, EntityProperty.GeneratePropertyForDouble(null));
        }
        public void Create_NullableDouble_CanConvertNullValue()
        {
            // Act
            IConverter <EntityProperty, double?> converter = EntityPropertyToTConverterFactory.Create <double?>();

            // Assert
            AssertCanConvertNullValue(converter, EntityProperty.GeneratePropertyForDouble(null));
        }
        public void Create_Double_ConvertThrowsIfNullProperty()
        {
            // Act
            IConverter <EntityProperty, double> converter = EntityPropertyToTConverterFactory.Create <double>();

            // Assert
            AssertConvertThrowsIfNullProperty(converter);
        }
        public void Create_NullableDateTime_ConvertThrowsIfNullProperty()
        {
            // Act
            IConverter <EntityProperty, DateTime?> converter = EntityPropertyToTConverterFactory.Create <DateTime?>();

            // Assert
            AssertConvertThrowsIfNullProperty(converter);
        }
        public void Create_NullableDateTime_CanConvertNullValue()
        {
            // Act
            IConverter <EntityProperty, DateTime?> converter = EntityPropertyToTConverterFactory.Create <DateTime?>();

            // Assert
            AssertCanConvertNullValue(converter, EntityProperty.GeneratePropertyForDateTimeOffset(null));
        }
        public void Create_NullableInt32_ConvertThrowsIfPropertyTypeMismatches()
        {
            // Act
            IConverter <EntityProperty, int?> converter = EntityPropertyToTConverterFactory.Create <int?>();

            // Assert
            AssertConvertThrowsIfPropertyTypeMismatches(converter, "Int32", new EntityProperty(false), "Boolean");
        }
        public void Create_Boolean_ConvertThrowsIfNullProperty()
        {
            // Act
            IConverter <EntityProperty, bool> converter = EntityPropertyToTConverterFactory.Create <bool>();

            // Assert
            AssertConvertThrowsIfNullProperty(converter);
        }
        public void Create_Int64_ConvertThrowsIfNullValue()
        {
            // Act
            IConverter <EntityProperty, long> converter = EntityPropertyToTConverterFactory.Create <long>();

            // Assert
            AssertConvertThrowsIfNullValue(converter, EntityProperty.GeneratePropertyForLong(null));
        }
        public void Create_Guid_ConvertThrowsIfNullValue()
        {
            // Act
            IConverter <EntityProperty, Guid> converter = EntityPropertyToTConverterFactory.Create <Guid>();

            // Assert
            AssertConvertThrowsIfNullValue(converter, EntityProperty.GeneratePropertyForGuid(null));
        }
        public void Create_NullableInt64_CanConvertNullValue()
        {
            // Act
            IConverter <EntityProperty, long?> converter = EntityPropertyToTConverterFactory.Create <long?>();

            // Assert
            AssertCanConvertNullValue(converter, EntityProperty.GeneratePropertyForLong(null));
        }
        public void Create_NullableGuid_CanConvertNullValue()
        {
            // Act
            IConverter <EntityProperty, Guid?> converter = EntityPropertyToTConverterFactory.Create <Guid?>();

            // Assert
            AssertCanConvertNullValue(converter, EntityProperty.GeneratePropertyForGuid(null));
        }
        public void Create_NullableInt64_ConvertThrowsIfPropertyTypeMismatches()
        {
            // Act
            IConverter <EntityProperty, long?> converter = EntityPropertyToTConverterFactory.Create <long?>();

            // Assert
            AssertConvertThrowsIfPropertyTypeMismatches(converter, "Int64");
        }
        public void Create_NullableGuid_ConvertThrowsIfPropertyTypeMismatches()
        {
            // Act
            IConverter <EntityProperty, Guid?> converter = EntityPropertyToTConverterFactory.Create <Guid?>();

            // Assert
            AssertConvertThrowsIfPropertyTypeMismatches(converter, "Guid");
        }
        public void Create_NullableEnum_ConvertThrowsIfNullProperty()
        {
            // Act
            IConverter <EntityProperty, AnEnum?> converter = EntityPropertyToTConverterFactory.Create <AnEnum?>();

            // Assert
            AssertConvertThrowsIfNullProperty(converter);
        }
        public void Create_Int32_ConvertThrowsIfNullProperty()
        {
            // Act
            IConverter <EntityProperty, int> converter = EntityPropertyToTConverterFactory.Create <int>();

            // Assert
            AssertConvertThrowsIfNullProperty(converter);
        }
        public void Create_String_ConvertThrowsIfNullProperty()
        {
            // Act
            IConverter <EntityProperty, string> converter = EntityPropertyToTConverterFactory.Create <string>();

            // Assert
            AssertConvertThrowsIfNullProperty(converter);
        }
        public void Create_Int32_ConvertThrowsIfNullValue()
        {
            // Act
            IConverter <EntityProperty, int> converter = EntityPropertyToTConverterFactory.Create <int>();

            // Assert
            AssertConvertThrowsIfNullValue(converter, EntityProperty.GeneratePropertyForInt(null));
        }
        public void Create_OtherType_ConvertThrowsIfNullProperty()
        {
            // Act
            IConverter <EntityProperty, Poco> converter = EntityPropertyToTConverterFactory.Create <Poco>();

            // Assert
            AssertConvertThrowsIfNullProperty(converter);
        }
        public void Create_Boolean_ConvertThrowsIfPropertyTypeMismatches()
        {
            // Act
            IConverter <EntityProperty, bool> converter = EntityPropertyToTConverterFactory.Create <bool>();

            // Assert
            AssertConvertThrowsIfPropertyTypeMismatches(converter, "Boolean");
        }
        public void Create_NullableBoolean_CanConvertNullValue()
        {
            // Act
            IConverter <EntityProperty, bool?> converter = EntityPropertyToTConverterFactory.Create <bool?>();

            // Assert
            AssertCanConvertNullValue(converter, EntityProperty.GeneratePropertyForBool(null));
        }
        public void Create_DateTime_ConvertThrowsIfPropertyTypeMismatches()
        {
            // Act
            IConverter <EntityProperty, DateTime> converter = EntityPropertyToTConverterFactory.Create <DateTime>();

            // Assert
            AssertConvertThrowsIfPropertyTypeMismatches(converter, "DateTime");
        }