Skip to content

Commit 015bd6a

Browse files
committed
NH-2003 - Do not export schema it is not necessary
1 parent dbdbd69 commit 015bd6a

File tree

1 file changed

+6
-4
lines changed
  • src/NHibernate.Test/NHSpecificTest/NH2003

1 file changed

+6
-4
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections.Generic;
21
using System.IO;
32
using System.Reflection;
43
using System.Text;
@@ -9,20 +8,23 @@
98
namespace NHibernate.Test.NHSpecificTest.NH2003
109
{
1110
[TestFixture]
12-
public class Fixture : BugTestCase
11+
public class Fixture
1312
{
1413
[Test]
1514
public void ShouldCreateNotNullIdColumn()
1615
{
1716
StringBuilder script = new StringBuilder();
1817

1918
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"))
2122
cfg.AddInputStream(stream);
23+
2224
new SchemaExport(cfg).Execute(s => script.AppendLine(s), false, false);
2325

2426
string wholeScript = script.ToString();
25-
Assert.That(wholeScript.ToLower(), Is.StringContaining("not null"));
27+
Assert.That(wholeScript, Is.StringContaining("not null").IgnoreCase);
2628
}
2729
}
2830
}

0 commit comments

Comments
 (0)