Skip to content

Commit 4c7832c

Browse files
committed
Merge pull request #154 from pcrockett/master
Removed a ton of build warnings
2 parents 5984ded + a5f3365 commit 4c7832c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/FluentNHibernate.Specs/Conventions/BiDirectionalKeysSpecs.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,11 @@ public class when_mapping_a_many_to_one_one_to_many_bi_directional_relationship
2121
child = mappings.SelectMany(x => x.Classes).FirstOrDefault(x => x.Type == typeof(Child));
2222
};
2323

24-
// these are ignored due to a regression this code caused - as this feature was added only as an
25-
// experiment, I doubt anyone will miss it for the time being.
26-
27-
[Ignore]
24+
[Ignore("Ignored due to a regression this code caused - as this feature was added only as an experiment, I doubt anyone will miss it for the time being.")]
2825
It should_use_the_many_to_one_columns_for_the_one_to_many_key = () =>
2926
parent.Collections.Single().Key.Columns.Select(x => x.Name).ShouldContainOnly("one", "two");
3027

31-
[Ignore]
28+
[Ignore("Ignored due to a regression this code caused - as this feature was added only as an experiment, I doubt anyone will miss it for the time being.")]
3229
It shouldnt_alter_the_many_to_one_columns = () =>
3330
child.References.Single().Columns.Select(x => x.Name).ShouldContainOnly("one", "two");
3431

src/FluentNHibernate.Specs/FluentNHibernate.Specs.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<WarningLevel>4</WarningLevel>
4343
<PlatformTarget>x86</PlatformTarget>
4444
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
45+
<NoWarn>169,649</NoWarn>
4546
</PropertyGroup>
4647
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
4748
<DebugType>pdbonly</DebugType>

src/FluentNHibernate.Testing/FluentNHibernate.Testing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<PlatformTarget>x86</PlatformTarget>
4343
<ErrorReport>prompt</ErrorReport>
4444
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
45-
<NoWarn>169</NoWarn>
45+
<NoWarn>169,1591</NoWarn>
4646
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
4747
<DocumentationFile>bin\Debug\FluentNHibernate.Testing.xml</DocumentationFile>
4848
</PropertyGroup>

0 commit comments

Comments
 (0)