Exemple #1
0
        public void CollectionDiscoveryLogic_GetName_NoAttribute_ReturnsClassName()
        {
            CollectionDiscoveryLogic collectionDiscoveryLogic = new CollectionDiscoveryLogic();

            string name = collectionDiscoveryLogic.GetName <TestClassWithoutAttribute>();

            Assert.AreEqual(className, name);
        }
Exemple #2
0
        public void CollectionDiscoveryLogic_GetName_ReturnsExpectedName()
        {
            CollectionDiscoveryLogic collectionDiscoveryLogic = new CollectionDiscoveryLogic();

            string name = collectionDiscoveryLogic.GetName <TestClassWithAttribute>();

            Assert.AreEqual(validName, name);
        }
Exemple #3
0
        public void CollectionDiscoveryLogic_GetName_AttributeExistsButLengthIsGreaterThan20_ThrowsRepositoryAttributeIsInvalidException()
        {
            CollectionDiscoveryLogic collectionDiscoveryLogic = new CollectionDiscoveryLogic();

            string name = collectionDiscoveryLogic.GetName <TestClassWithAttributeNameLengthGreaterThan20>();
        }
Exemple #4
0
        public void CollectionDiscoveryLogic_GetName_AttributeExistsButIsEmpty_ThrowsRepositoryAttributeIsInvalidException()
        {
            CollectionDiscoveryLogic collectionDiscoveryLogic = new CollectionDiscoveryLogic();

            string name = collectionDiscoveryLogic.GetName <TestClassWithAttributeNameIsEmpty>();
        }