nhibernate/nhibernate-core — comment on commit d1096b1613e676d1a39d63a1449c0501d5af27ed
File: src/NHibernate.Test/Component/Basic/ComponentWithUniqueConstraintTests.cs line 90
By hazzik:

Arghhh I've done it in similar way:

```csharp

var exception = Assert.Throws(() =>
{
session.Save(e1);
session.Save(e2);
session.Flush();
});

Assert.That(exception.InnerException, Is.AssignableTo()
.With.Message.StringContaining("unique").IgnoreCase
.And.Message.StringContaining("constraint").IgnoreCase);
```

And anable it for other dialects (I've checked on Oracle and SQLite)