Created
December 20, 2017 13:53
-
-
Save selcukusta/55430d66e334fb22cb4a3bf486c4cb13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Globalization; | |
| using test.poco; | |
| using Xunit; | |
| namespace test.theory | |
| { | |
| public class CultureTestTheoryData : TheoryData<CultureTestParameter> | |
| { | |
| public CultureTestTheoryData() | |
| { | |
| Add(new CultureTestParameter | |
| { | |
| Culture = CultureInfo.CreateSpecificCulture("tr-TR"), | |
| Actual = new DateTime(2017, 05, 15), | |
| Expected = "15 Mayıs 2017" | |
| }); | |
| Add(new CultureTestParameter | |
| { | |
| Culture = CultureInfo.CreateSpecificCulture("en-US"), | |
| Actual = new DateTime(1987, 08, 13), | |
| Expected = "13 August 1987" | |
| }); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment