标签: c# assert
即使调试器显示正确的值,我的测试方法也失败了。为什么这个测试没有通过呢?
[TestMethod] public void Should_60Deegrees_ForArcCosOfHalf() { var deegrees = (Math.Acos(0.5) * 180 / Math.PI); Assert.AreEqual(60, deegrees); }