File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/NHibernate.Test/NHSpecificTest/NH2003 Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- using System . Collections . Generic ;
2
1
using System . IO ;
3
2
using System . Reflection ;
4
3
using System . Text ;
9
8
namespace NHibernate . Test . NHSpecificTest . NH2003
10
9
{
11
10
[ TestFixture ]
12
- public class Fixture : BugTestCase
11
+ public class Fixture
13
12
{
14
13
[ Test ]
15
14
public void ShouldCreateNotNullIdColumn ( )
16
15
{
17
16
StringBuilder script = new StringBuilder ( ) ;
18
17
19
18
Configuration cfg = TestConfigurationHelper . GetDefaultConfiguration ( ) ;
20
- using ( Stream stream = Assembly . GetExecutingAssembly ( ) . GetManifestResourceStream ( MappingsAssembly + "." + ( string ) Mappings [ 0 ] ) )
19
+
20
+ string ns = GetType ( ) . Namespace ;
21
+ using ( Stream stream = Assembly . GetExecutingAssembly ( ) . GetManifestResourceStream ( ns + ".Mappings.hbm.xml" ) )
21
22
cfg . AddInputStream ( stream ) ;
23
+
22
24
new SchemaExport ( cfg ) . Execute ( s => script . AppendLine ( s ) , false , false ) ;
23
25
24
26
string wholeScript = script . ToString ( ) ;
25
- Assert . That ( wholeScript . ToLower ( ) , Is . StringContaining ( "not null" ) ) ;
27
+ Assert . That ( wholeScript , Is . StringContaining ( "not null" ) . IgnoreCase ) ;
26
28
}
27
29
}
28
30
}
You can’t perform that action at this time.
0 commit comments