File tree 4 files changed +19
-4
lines changed
4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ We'd love your contributions! If you want to contribute please read our [Contrib
354
354
* [ @AmirEsdeki ] ( https://github.com/AmirEsdeki )
355
355
* [ @Zulander1 ] ( https://github.com/zulander1 )
356
356
* [ @Jeevananthan ] ( https://github.com/Jeevananthan-23 )
357
+ * [ @mariusmuntean ] ( https://github.com/mariusmuntean )
357
358
358
359
<!-- Logo -->
359
360
[ Logo ] : images/logo.svg
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public static GeoLoc Parse(string geolocString)
53
53
/// <inheritdoc/>
54
54
public override string ToString ( )
55
55
{
56
- return $ "{ Longitude } ,{ Latitude } ";
56
+ return $ "{ Longitude . ToString ( CultureInfo . InvariantCulture ) } ,{ Latitude . ToString ( CultureInfo . InvariantCulture ) } ";
57
57
}
58
58
}
59
59
}
Original file line number Diff line number Diff line change 6
6
<RootNamespace >Redis.OM</RootNamespace >
7
7
<Nullable >enable</Nullable >
8
8
<AutoGenerateBindingRedirects >true</AutoGenerateBindingRedirects >
9
- <PackageVersion >0.3.0 </PackageVersion >
10
- <Version >0.3.0 </Version >
11
- <PackageReleaseNotes >https://github.com/redis/redis-om-dotnet/releases/tag/v0.3.0 </PackageReleaseNotes >
9
+ <PackageVersion >0.3.1 </PackageVersion >
10
+ <Version >0.3.1 </Version >
11
+ <PackageReleaseNotes >https://github.com/redis/redis-om-dotnet/releases/tag/v0.3.1 </PackageReleaseNotes >
12
12
<Description >Object Mapping and More for Redis</Description >
13
13
<Title >Redis OM</Title >
14
14
<Authors >Steve Lorello</Authors >
Original file line number Diff line number Diff line change 1
1
using System . Collections . Generic ;
2
2
using System . Text . Json ;
3
+ using Redis . OM . Modeling ;
3
4
using Xunit ;
4
5
5
6
namespace Redis . OM . Unit . Tests
@@ -39,5 +40,18 @@ public void TestInvariantCultureParsingFromFormattedHash()
39
40
{
40
41
Helper . RunTestUnderDifferentCulture ( "it-IT" , x => TestParsingFromFormattedHash ( ) ) ;
41
42
}
43
+
44
+ [ Theory ]
45
+ [ InlineData ( "en-DE" ) ]
46
+ [ InlineData ( "it-IT" ) ]
47
+ public void TestToStringInOtherCultures ( string lcid )
48
+ {
49
+ Helper . RunTestUnderDifferentCulture ( lcid , o =>
50
+ {
51
+ var geoLoc = new GeoLoc ( 45.2 , 11.9 ) ;
52
+ var geoLocStr = geoLoc . ToString ( ) ;
53
+ Assert . Equal ( "45.2,11.9" , geoLocStr ) ;
54
+ } ) ;
55
+ }
42
56
}
43
57
}
You can’t perform that action at this time.
0 commit comments