Exemple #1
0
            public void GetsCurrentCultureIfNoSetting()
            {
                // Given
                TestExecutionContext context = new TestExecutionContext();

                // When
                CultureInfo result = context.GetDateTimeInputCulture();

                // Then
                Assert.That(result, Is.EqualTo(CultureInfo.CurrentCulture));
            }
Exemple #2
0
            public void GetsSettingCulture()
            {
                // Given
                TestExecutionContext context = new TestExecutionContext();

                context.Settings[Keys.DateTimeInputCulture] = CultureInfo.GetCultureInfo("en-GB");

                // When
                CultureInfo result = context.GetDateTimeInputCulture();

                // Then
                Assert.That(result, Is.EqualTo(CultureInfo.GetCultureInfo("en-GB")));
            }