I've seen few sample sitecore applications which uses the code below within the business logics:

```
 Database database = Factory.GetDatabase(itemUri.DatabaseName);
 Assert.IsNotNull(database, itemUri.DatabaseName);
 return database.GetItem(attribute);

```

Could someone please clarify if this is a sitecore convention. I've only used Assert for unit testing scenarios but not within logic.

Thanks.