Skip to content

Commit 3f6ecda

Browse files
fix tests
1 parent db39633 commit 3f6ecda

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Sources/LambdaConverters.Wpf/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// associated with an assembly.
77
[assembly: AssemblyTrademark("")]
88
[assembly: AssemblyCulture("")]
9+
[assembly: AssemblyCopyright("© 2017 Michael Damatov, Dimitri Enns.")]
910

1011
// Setting ComVisible to false makes the types in this assembly not visible
1112
// to COM components. If you need to access a type in this assembly from

Sources/Tests.LambdaConverters.Wpf/AssemblyInfoTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ public void AssemblyVersions()
3838

3939
var fileVersionAttribute = assembly.GetCustomAttribute<AssemblyFileVersionAttribute>();
4040

41-
Assert.AreEqual(
42-
new Version(assemblyVersion.Major, assemblyVersion.Minor, assemblyVersion.Build),
43-
new Version(fileVersionAttribute.Version));
41+
Assert.AreEqual(assemblyVersion, new Version(fileVersionAttribute.Version));
4442
}
4543
}
4644
}

Sources/Tests.Shared/AssemblyAssert.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static void AreAttributesValid([NotNull] Assembly assembly)
3030
string.Format(
3131
"Missing the {0} attribute in the {1} assembly.",
3232
GetAttributeName<AssemblyCopyrightAttribute>(),
33-
Path.GetFileName(typeof(Version).Assembly.Location)));
33+
Path.GetFileName(assembly.Location)));
3434
}
3535

3636
if (copyrightAttribute.Copyright == null)
@@ -40,7 +40,7 @@ public static void AreAttributesValid([NotNull] Assembly assembly)
4040
"The '{0}' property of the {1} attribute in the {2} assembly is null.",
4141
nameof(AssemblyCopyrightAttribute.Copyright),
4242
GetAttributeName<AssemblyCopyrightAttribute>(),
43-
Path.GetFileName(typeof(Version).Assembly.Location)));
43+
Path.GetFileName(assembly.Location)));
4444
}
4545

4646
if (copyrightAttribute.Copyright.IndexOf(DateTime.Today.Year.ToString(), StringComparison.CurrentCultureIgnoreCase) == -1)
@@ -50,7 +50,7 @@ public static void AreAttributesValid([NotNull] Assembly assembly)
5050
"The '{0}' property of the {1} attribute in the {2} assembly does not contain the current year.",
5151
nameof(AssemblyCopyrightAttribute.Copyright),
5252
GetAttributeName<AssemblyCopyrightAttribute>(),
53-
Path.GetFileName(typeof(Version).Assembly.Location)));
53+
Path.GetFileName(assembly.Location)));
5454
}
5555
}
5656
}

0 commit comments

Comments
 (0)