Skip to content

Commit ab9d883

Browse files
NH-3905 - More tests generation.
1 parent 4d99b2b commit ab9d883

File tree

268 files changed

+465
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+465
-192
lines changed

Tools/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.6.0" targetFramework="net461" />
88
<package id="NUnit.Extension.TeamCityEventListener" version="1.0.2" targetFramework="net461" />
99
<package id="NUnit.Extension.VSProjectLoader" version="3.6.0" targetFramework="net461" />
10-
<package id="CSharpAsyncGenerator.CommandLine" version="0.3.6" targetFramework="net461" />
10+
<package id="CSharpAsyncGenerator.CommandLine" version="0.4.0" targetFramework="net461" />
1111
</packages>

src/AsyncGenerator.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@
180180
hasAttributeName: IgnoreAttribute
181181
- conversion: NewType
182182
hasAttributeName: TestFixtureAttribute
183+
- conversion: NewType
184+
anyBaseTypeRule: HasTestFixtureAttribute
183185
- conversion: Ignore
184186
rule: IsTestCase
185187
- conversion: Ignore
@@ -246,3 +248,6 @@ typeRules:
246248
- filters:
247249
- name: TestCase
248250
name: IsTestCase
251+
- filters:
252+
- hasAttributeName: TestFixtureAttribute
253+
name: HasTestFixtureAttribute

src/NHibernate.Test/CfgTest/AccessorsSerializableTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace NHibernate.Test.CfgTest
77
{
8+
[TestFixture]
89
public class AccessorsSerializableTest
910
{
1011
private static System.Type[] accessors = typeof (IPropertyAccessor).Assembly.GetTypes().Where(t => t.Namespace == typeof (IPropertyAccessor).Namespace && t.GetInterfaces().Contains(typeof (IPropertyAccessor))).ToArray();

src/NHibernate.Test/CfgTest/ConfigurationAddMappingEvents.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace NHibernate.Test.CfgTest
99
{
10+
[TestFixture]
1011
public class ConfigurationAddMappingEvents
1112
{
1213
private const string ProductLineMapping =
@@ -72,4 +73,4 @@ public void WhenSubscribedToAfterBindThenRaiseEventForEachMapping()
7273
Assert.That(listOfCalls.Select(x => x.Dialect).All(x => x.GetType() == typeof(MsSql2008Dialect)), Is.True);
7374
}
7475
}
75-
}
76+
}

src/NHibernate.Test/CfgTest/CustomBytecodeProviderTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace NHibernate.Test.CfgTest
99
{
10+
[TestFixture]
1011
public class CustomBytecodeProviderTest
1112
{
1213
private class MyByteCodeProvider : AbstractBytecodeProvider

src/NHibernate.Test/CfgTest/Loquacious/NamedQueryTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace NHibernate.Test.CfgTest.Loquacious
66
{
7+
[TestFixture]
78
public class NamedQueryTests
89
{
910
[Test]
@@ -72,4 +73,4 @@ public void WhenSetValidTimeoutThenSetValue()
7273
Assert.That(configure.NamedQueries.Values.Single().Timeout, Is.EqualTo(123));
7374
}
7475
}
75-
}
76+
}

src/NHibernate.Test/Component/Basic/ComponentWithUniqueConstraintTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
namespace NHibernate.Test.Component.Basic
1414
{
15+
[TestFixture]
1516
public class ComponentWithUniqueConstraintTests : TestCaseMappingByCode
1617
{
1718
protected override HbmMapping GetMappings()

src/NHibernate.Test/DialectTest/MsSqlCe40DialectFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace NHibernate.Test.DialectTest
66
{
7+
[TestFixture]
78
public class MsSqlCe40DialectFixture
89
{
910
[Test]

src/NHibernate.Test/DriverTest/DbProviderFactoryDriveConnectionCommandProviderTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace NHibernate.Test.DriverTest
77
{
8+
[TestFixture]
89
public class DbProviderFactoryDriveConnectionCommandProviderTest
910
{
1011
[Test]
@@ -35,4 +36,4 @@ public void WhenCreatedWithDbFactoryThenCanReturnCommand()
3536
}
3637
}
3738
}
38-
}
39+
}

src/NHibernate.Test/DriverTest/ReflectionBasedDriverTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace NHibernate.Test.DriverTest
66
{
7+
[TestFixture]
78
public class ReflectionBasedDriverTest
89
{
910
private class MyDriverWithWrongClassesAndGoodDbProviderFactory : ReflectionBasedDriver
@@ -114,4 +115,4 @@ public void WhenCreatedNoWithDbFactoryThenCanReturnCommand()
114115
}
115116
}
116117
}
117-
}
118+
}

0 commit comments

Comments
 (0)