public void InitializesNewObjectWithValidArgument() { var attribute = new PrimaryEntityAttribute(Schema.AccountEntity.TypeName); Assert.IsNotNull(attribute); Assert.IsNotNull(attribute.EntityLogicalName); Assert.AreEqual(Schema.AccountEntity.TypeName, attribute.EntityLogicalName); }
public void ThrowsErrorForEmptyArgument() { var attribute = new PrimaryEntityAttribute(String.Empty); }
public void ThrowsErrorForNullArgument() { var attribute = new PrimaryEntityAttribute(null); }