All tests were changed due to Nunit lib changing

This commit is contained in:
Evgeny Redikultsev
2024-12-18 22:16:50 +05:00
parent 0538c6b53c
commit a14433f3cb
43 changed files with 206 additions and 174 deletions

View File

@@ -46,7 +46,7 @@ namespace StructureHelperTests.UnitTests.Ndms.Cracks
// Assert
// Expected result calculation:
// rebarArea = 1.0 * 1.0 + 2.0 * 1.0 + 3.0 * 1.0 = 6.0
Assert.AreEqual(6.0, result);
Assert.That(result, Is.EqualTo(6.0));
}
@@ -76,7 +76,7 @@ namespace StructureHelperTests.UnitTests.Ndms.Cracks
// Act & Assert
var ex = Assert.Throws<StructureHelperException>(() => logic.GetTensionRebarArea());
StringAssert.Contains("Collection of rebars does not contain any tensile rebars", ex.Message);
Assert.That(ex.Message, Does.Contain("Collection of rebars does not contain any tensile rebars"));
}
}
}