Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in ef functional test building in italian locale #182

Closed
lucamorelli opened this issue May 20, 2014 · 1 comment
Closed

error in ef functional test building in italian locale #182

lucamorelli opened this issue May 20, 2014 · 1 comment

Comments

@lucamorelli
Copy link

Hi,
I'm building the ef source in my development machine, where I have italian as locale.
At the end of the build, when runs the fun ctional test I receive several errors like this:

Microsoft.Data.Entity.InMemory.FunctionalTests.NorthwindQueryTest.Select_customer_table [FAIL]
 System.AggregateException : One or more errors occurred.\r\n---- System.TypeInitializationException : The type initializer for 'Northwind.NorthwindData' threw an exception.\r\n-------- System.FormatException : String was not recognized as a valid DateTime.\r\n---- The following constructor arguments did not have matching fixture data: NorthwindQueryFixture fixture
 Stack Trace:
     ----- Inner Stack Trace #1 (System.TypeInitializationException) -----
        at Microsoft.Data.Entity.InMemory.FunctionalTests.NorthwindQueryFixture..ctor() in ...\EntityFramework\test\Microsoft.Data.Entity.InMemory.FunctionalTests\NorthwindQueryTest.cs:line 39
     ----- Inner Stack Trace -----
        at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
        at System.DateTime.Parse(String s)
        at Northwind.NorthwindData..cctor() in D:\GitHub\EntityFramework\test\Shared\Northwind.cs:line 1585
     ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----

Looks like the problem is here:

 public static readonly Employee[] Employees =
 {
 new Employee
 {
 ...
 BirthDate = DateTime.Parse("12/8/1948 12:00:00 AM"),
 HireDate = DateTime.Parse("5/1/1992 12:00:00 AM"),
 ..

this format is not accepted when the datetime format not english

@rowanmiller
Copy link
Contributor

Closing this one out as we are now able to accept pull requests and will be processing #258. That work item will track this issue.

natemcmaster pushed a commit that referenced this issue Oct 31, 2018
This also removes the PlatformAbstractions dependency. (Resolves #180)

Resolves #182
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants