I have done porting of a c++ project with gtest tests to a c# project having an nunit test. Now I encounter problems with floating point precision.
in the nunit test I have being not ok (red)
Assert.AreEqual(0.7, 7 * 0.1);
in the gtest test I have:
ASSERT_DOUBLE_EQ(0.7, 7 * 0.1);
which is ok (green)
The question now is WHY???