Exemple #1
0
        public void GetAttributeTypeForCsvDecimal()
        {
            var actual = EntityConverterHelper.GetAttributeTypeForCsv("decimal");

            Assert.AreEqual(typeof(decimal), actual);
        }
Exemple #2
0
        public void GetAttributeTypeForCsvInteger()
        {
            var actual = EntityConverterHelper.GetAttributeTypeForCsv("integer");

            Assert.AreEqual(typeof(int), actual);
        }
Exemple #3
0
        public void GetAttributeTypeForCsvGuid()
        {
            var actual = EntityConverterHelper.GetAttributeTypeForCsv("guid");

            Assert.AreEqual(typeof(Guid), actual);
        }
Exemple #4
0
 public void GetAttributeTypeForCsvUnSupported()
 {
     FluentActions.Invoking(() => EntityConverterHelper.GetAttributeTypeForCsv("float"))
     .Should()
     .Throw <ConfigurationException>();
 }
Exemple #5
0
        public void GetAttributeTypeForCsvString()
        {
            var actual = EntityConverterHelper.GetAttributeTypeForCsv("string");

            Assert.AreEqual(typeof(string), actual);
        }
Exemple #6
0
        public void GetAttributeTypeForCsvBool()
        {
            var actual = EntityConverterHelper.GetAttributeTypeForCsv("bool");

            Assert.AreEqual(typeof(bool), actual);
        }
Exemple #7
0
        public void GetAttributeTypeForCsvOptionSetValueCollection()
        {
            var actual = EntityConverterHelper.GetAttributeTypeForCsv("optionsetvaluecollection");

            Assert.AreEqual(typeof(string), actual);
        }
Exemple #8
0
        public void GetAttributeTypeForCsvOptionSetValue()
        {
            var actual = EntityConverterHelper.GetAttributeTypeForCsv("optionsetvalue");

            Assert.AreEqual(typeof(int), actual);
        }
Exemple #9
0
        public void GetAttributeTypeForCsvEntityreference()
        {
            var actual = EntityConverterHelper.GetAttributeTypeForCsv("entityreference");

            Assert.AreEqual(typeof(Guid), actual);
        }
Exemple #10
0
        public void GetAttributeTypeForCsvDouble()
        {
            var actual = EntityConverterHelper.GetAttributeTypeForCsv("double");

            Assert.AreEqual(typeof(double), actual);
        }