Commit Graph

54 Commits

Author SHA1 Message Date
John Luo b294828b0f Updating test TFMs for custom test discovery 2016-02-22 14:50:21 -08:00
Kiran Challa 43fd4c465f Enable tests to run using dotnet xunit runner 2016-02-10 14:59:50 -08:00
Victor Hurdugaci 81ef98b7d5 Fix build errors 2016-02-10 14:08:12 -08:00
Pranav K 33134f7f2a Change build to use dotnet
Fixes #198
2016-02-05 12:06:03 -08:00
Hisham Bin Ateya 6f5bddea69 FunctionalTest for LocalizationSample
Remove LocalizationTest comments

Move shared code into a private method

Add CoreClr with Mono in non Windows test

Fix typo
2016-02-02 14:58:43 -08:00
Cesar Blum Silveira 58ab5d6699 Reference Microsoft.NETCore.Platforms where necessary. 2016-02-02 14:21:13 -08:00
N. Taylor Mullen 4010676634 Rename AspNet 5 file contents.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:55 -08:00
N. Taylor Mullen ee1738db56 Rename AspNet 5 folders and files.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:52 -08:00
ryanbrandenburg 60047186eb * Replace System.Resources.ReaderWriter 2016-01-20 12:02:02 -08:00
John Luo 0bd2e3281d Reacting to hosting rename 2016-01-17 17:56:43 -08:00
John Luo 5c2bdc8923 Updating to new options pattern 2016-01-07 18:26:38 -08:00
ryanbrandenburg 5b1beb68b5 * Make test culture independent 2016-01-05 12:01:16 -08:00
ryanbrandenburg f3855b9cf2 * Throw proper exception when missing resource 2015-12-29 14:13:20 -08:00
John Luo d9fc399531 Standardizing middleware to use configureOptions lambda 2015-12-22 21:57:56 -08:00
Hao Kung 489250a8e1 OptionsModel => Options 2015-12-21 16:07:14 -08:00
Chris R c31c6cd186 React to Hosting changes. 2015-12-21 10:54:47 -08:00
John Luo 5c98dd5d98 Reacting to new Hosting API 2015-12-18 15:52:58 -08:00
damianedwards 017b9b8773 Added tests to cover ResourceManagerStringLocalizerFactory caching behavior 2015-12-18 14:28:08 -08:00
damianedwards e72d3cb249 ResourceManagerStringLocalizerFactory trims app name from resource base name:
- Only applies when LocalizationOptions.ResourcesPath is set
- #167
2015-12-16 15:38:25 -08:00
damianedwards 1c5362bccb Added support for hierarchical culture fallback:
- Enabled by default and configured by RequestLocalizationOptions.FallbackToAncestorCulture/FallbackToAncestorUICulture
- Tries all candidate cultures first before trimming the list to parents and trying again, until a match is found, depth limit is reached, or none is found
- Updated functional tests to cover fallback case
- #112
2015-12-15 14:56:04 -08:00
ryanbrandenburg 5074bf0c57 * Default ResourcePath behavior is to look next to .cs file 2015-12-15 11:53:55 -08:00
damianedwards 0b013ae769 Usability improvements:
- Remove the defaultRequestCulture parameter from IApplicationBuilder.UseRequestLocalization and make it a property on RequestLocalizationOptions instead
- Have just a single overload for IApplicationBuilder.UseRequestLocalization that takes the options
- #164
2015-12-11 15:21:07 -08:00
damianedwards 7033871b14 Fix tests in reaction to Options changes 2015-12-10 21:32:05 -08:00
Pranav K 62412836de Removing extraneous dependencies 2015-12-08 10:48:26 -08:00
Doug Bunting 36bc26fb55 Remove `[SuppressMessage]`s
- build break

nit: let VS have its way w/ a `.xproj` file
2015-12-07 21:07:23 -08:00
N. Taylor Mullen dc56363dbd Remove System beta tag in project.json for coreclr packages. 2015-11-12 12:24:23 -08:00
Troy Dai 83c46fb8b7 Run CoreCLR test when runtime framework is CoreCLR 2015-11-10 14:40:19 -08:00
Cesar Blum Silveira d8060792b2 Strong name everything. 2015-11-03 12:14:18 -08:00
Kirthi Krishnamraju 636459a6f7 Fix #111: Design changes to known/allowed culture list and cache 2015-10-23 00:41:07 -07:00
Kirthi Krishnamraju 90116ddd78 fix #90: ResourceStringLocalizerFactory creates string localizer based on resourcetype's name instead of full name 2015-10-19 10:39:05 -07:00
Kirthi Krishnamraju 7ea6435338 Added localization functional tests 2015-10-13 15:50:55 -07:00
Hisham Bin Ateya 722fbc4ef5 CultureInfoCache.GetCultureInfo Should not be case sensitive 2015-10-06 00:44:28 +03:00
Hisham Bin Ateya b22474afb3 Add missing Asserts 2015-10-05 13:38:22 -07:00
Pranav K f782d8845c Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:49 -07:00
Hisham Bin Ateya 61106d36a1 Fix issue #88 2015-09-28 00:11:45 -07:00
Kiran Challa ed70441162 Fix for build break. Removing reference to official xunit package. 2015-09-22 14:55:36 -07:00
Kirthi Krishnamraju 06aa2412a8 Update sample to use LocalizationOptions and fixed issue in AddLocalization 2015-09-17 11:08:03 -07:00
Kirthi Krishnamraju eefe518ac2 Add LocalizationOptions to specify resources location 2015-09-14 20:34:43 -07:00
Hisham Bin Ateya a7b1b1e4ec Remove unnecessary usings from Microsoft.Framework.Localization.Tests 2015-09-14 20:29:13 -07:00
Hisham Bin Ateya 56259c0564 Add missing 'Assert' in GetFallbackLanguage_ReturnsFirstNonNullCultureFromSupportedCultureList 2015-09-14 20:25:45 -07:00
Kirthi Krishnamraju 7b53bdd43e Fix for #38: Fallback to wrong language preference when the top preference is unavailable 2015-09-14 11:01:34 -07:00
Hisham Abdullah Bin Ateya efcbb2a664 Add 'Microsoft.AspNet.Localization' Unit Tests 2015-09-14 10:28:41 -07:00
Hisham Abdullah Bin Ateya 2faf31727e Fix namespace typo 2015-09-10 16:01:55 -07:00
Troy Dai cc0c4e1f55 Update CoreCLR versions 2015-08-04 10:15:29 -07:00
Hisham Abdullah Bin Ateya 01d0b5db22 Reformat project.json
Reformat project.json

Fix typo
2015-07-30 11:26:14 -07:00
Hisham Abdullah Bin Ateya 5f83c0df43 Rename Microsoft.Framework.Localization.Test to Microsoft.Framework.Localization.Tests
Microsoft.Framework.Localization.Test -> Microsoft.Framework.Localization.Tests

Rename the .xproj

Rename the solution file
2015-07-30 09:50:26 -07:00
anurse 47ff0f26ac return to the official xunit build 2015-06-17 12:09:09 -07:00
anurse d436955e02 Switch to xunit.runner.aspnet 2015-06-13 00:13:52 -07:00
anurse f581863445 move System.Reflection dependency to dnxcore50 in tests 2015-06-12 23:43:46 -07:00
damianedwards 39f40d2c5f Fix references to include beta-* 2015-05-29 11:46:24 -07:00