diff --git a/src/Tests/EFCoreSecondLevelCacheInterceptor.UnitTests/EFTableRowsDataReaderTests.cs b/src/Tests/EFCoreSecondLevelCacheInterceptor.UnitTests/EFTableRowsDataReaderTests.cs index 059d814..5e3a758 100644 --- a/src/Tests/EFCoreSecondLevelCacheInterceptor.UnitTests/EFTableRowsDataReaderTests.cs +++ b/src/Tests/EFCoreSecondLevelCacheInterceptor.UnitTests/EFTableRowsDataReaderTests.cs @@ -1102,8 +1102,7 @@ public void GetInt64_ReturnsExpectedValue(object value, long expected) new List { new object[] { null, string.Empty }, - new object[] { string.Empty, string.Empty }, - new object[] { 123.45, "123,45" } + new object[] { string.Empty, string.Empty } }; [Theory] @@ -1125,6 +1124,24 @@ public void GetString_ReturnsExpectedValue(object value, string expected) Assert.Equal(expected, actual); } + [Fact] + public void GetString_ReturnsExpectedValueFromInvariantDecimal() + { + // Arrange + var values = new List { 123.45.ToString(CultureInfo.InvariantCulture) }; + var tableRow = new EFTableRow(values); + var tableRows = new EFTableRows { Rows = new List { tableRow } }; + var dataReader = new EFTableRowsDataReader(tableRows); + + dataReader.Read(); + + // Act + var actual = dataReader.GetString(0); + + // Assert + Assert.Equal("123.45", actual); + } + [Fact] public void GetValue_ReturnsExpectedValue_WhenOrdinalIsValid() {