Skip to content

Commit 5a1452a

Browse files
David EllingsworthDavid Ellingsworth
authored andcommitted
GH-3530: Replace explicit type with var to avoid type duplication.
1 parent c1ca5b3 commit 5a1452a

File tree

1 file changed

+2
-2
lines changed
  • src/NHibernate.Test/NHSpecificTest/GH3530

1 file changed

+2
-2
lines changed

src/NHibernate.Test/NHSpecificTest/GH3530/Fixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ private void PerformTest<T, U>(CultureInfo from, CultureInfo to, T expectedValue
142142
[Test, TestCaseSource(nameof(GetTestCases))]
143143
public void TestNHDateTime(CultureInfo from, CultureInfo to)
144144
{
145-
DateTime leapDay = new DateTime(2024, 2, 29, new GregorianCalendar(GregorianCalendarTypes.USEnglish));
145+
var leapDay = new DateTime(2024, 2, 29, new GregorianCalendar(GregorianCalendarTypes.USEnglish));
146146

147147
PerformTest<DateTime, NHDateTimeEntity>(from, to, leapDay, (expected, actual) => Assert.AreEqual(expected, actual));
148148
}
149149

150150
[Test, TestCaseSource(nameof(GetTestCases))]
151151
public void TestDateTime(CultureInfo from, CultureInfo to)
152152
{
153-
DateTime leapDay = new DateTime(2024, 2, 29, new GregorianCalendar(GregorianCalendarTypes.USEnglish));
153+
var leapDay = new DateTime(2024, 2, 29, new GregorianCalendar(GregorianCalendarTypes.USEnglish));
154154

155155
PerformTest<DateTime, DateTimeEntity>(from, to, leapDay, (expected, actual) => Assert.AreEqual(expected, actual));
156156
}

0 commit comments

Comments
 (0)