public void CollectionDiscoveryLogic_GetName_NoAttribute_ReturnsClassName() { CollectionDiscoveryLogic collectionDiscoveryLogic = new CollectionDiscoveryLogic(); string name = collectionDiscoveryLogic.GetName <TestClassWithoutAttribute>(); Assert.AreEqual(className, name); }
public void CollectionDiscoveryLogic_GetName_ReturnsExpectedName() { CollectionDiscoveryLogic collectionDiscoveryLogic = new CollectionDiscoveryLogic(); string name = collectionDiscoveryLogic.GetName <TestClassWithAttribute>(); Assert.AreEqual(validName, name); }
public void CollectionDiscoveryLogic_GetName_AttributeExistsButLengthIsGreaterThan20_ThrowsRepositoryAttributeIsInvalidException() { CollectionDiscoveryLogic collectionDiscoveryLogic = new CollectionDiscoveryLogic(); string name = collectionDiscoveryLogic.GetName <TestClassWithAttributeNameLengthGreaterThan20>(); }
public void CollectionDiscoveryLogic_GetName_AttributeExistsButIsEmpty_ThrowsRepositoryAttributeIsInvalidException() { CollectionDiscoveryLogic collectionDiscoveryLogic = new CollectionDiscoveryLogic(); string name = collectionDiscoveryLogic.GetName <TestClassWithAttributeNameIsEmpty>(); }