Skip to content

Instantly share code, notes, and snippets.

@selcukusta
Created December 20, 2017 13:53
Show Gist options
  • Select an option

  • Save selcukusta/55430d66e334fb22cb4a3bf486c4cb13 to your computer and use it in GitHub Desktop.

Select an option

Save selcukusta/55430d66e334fb22cb4a3bf486c4cb13 to your computer and use it in GitHub Desktop.
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