Update test assertions to allow any non-default int result
Previously, tests asserted that procedure results were exactly 0. Now, assertions require only that results are not the default int value, making the tests more flexible to non-zero outcomes.
This commit is contained in:
@@ -41,7 +41,7 @@ public class ProcedureExecutionTests : RecApplicationTestBase
|
||||
using var _ = scope;
|
||||
var result = await sender.ExecuteUpdateProcedure(procedure, 123, "ReC.Tests");
|
||||
|
||||
Assert.That(result, Is.EqualTo(0));
|
||||
Assert.That(result, Is.Not.EqualTo(default(int)));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -53,6 +53,6 @@ public class ProcedureExecutionTests : RecApplicationTestBase
|
||||
using var _ = scope;
|
||||
var result = await sender.ExecuteDeleteProcedure(procedure);
|
||||
|
||||
Assert.That(result, Is.EqualTo(0));
|
||||
Assert.That(result, Is.Not.EqualTo(default(int)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user