-
Notifications
You must be signed in to change notification settings - Fork 934
Reuse SchemaExport in CreateSchema/DropSchema in tests #1519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reuse SchemaExport in CreateSchema/DropSchema in tests #1519
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new warning must be fixed in SQLiteMultiCriteriaTest.cs.
@@ -48,6 +49,8 @@ protected virtual string MappingsAssembly | |||
get { return "NHibernate.DomainModel"; } | |||
} | |||
|
|||
protected SchemaExport SchemaExport => _schemaExport ?? (_schemaExport = new SchemaExport(cfg)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NHSpecificTest\NH2195\SQLiteMultiCriteriaTest.cs(35,18): warning CS0108: 'SQLiteMultiCriteriaTest.SchemaExport(Configuration)' hides inherited member 'TestCase.SchemaExport'. Use the new keyword if hiding was intended.
Release build will fail. Maybe is it time to enable warning as error in the test project debug config too.
Can I also push here some small modification in |
So it would be just removing this line, because this method is called only in one other method which already calls Still a bit unrelated, but well why not. |
92cee96
to
f46986e
Compare
@fredericDelaporte Yeah. Also renamed it to ExecuteInitialized to differentiate it from other public Execute methods where Initialize is called. |
No description provided.