Skip to content

Commit 7cd18a3

Browse files
committed
made it easier
1 parent 4189555 commit 7cd18a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/EFCore.Ydb/test/EntityFrameworkCore.Ydb.FunctionalTests/Query/DecimalParameterizedYdbTheoryTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ public async Task Decimal_roundtrips_or_rounds_like_ado(int p, int s, decimal va
7070
ctx.Add(e);
7171
await ctx.SaveChangesAsync();
7272

73-
var got = await ctx.Items.SingleAsync(x => x.Id == e.Id);
73+
await using var ctx2 = NewCtx(p, s);
74+
var got = await ctx2.Items.SingleAsync(x => x.Id == e.Id);
7475

75-
var expected = Math.Round(value, s, MidpointRounding.ToEven);
76-
Assert.Equal(expected, got.Price);
76+
Assert.Equal(value, got.Price);
7777

7878
var tms = ctx.GetService<IRelationalTypeMappingSource>();
7979
var et = ctx.Model.FindEntityType(typeof(ParamItem))!;

0 commit comments

Comments
 (0)