https://msdn.microsoft.com/en-us/library/ms243458.aspx
The third parameter in Assert.AreEqual(double, double, double)
specifies the degree of accuracy you want for equality. Your code asks “is 2 within 2 of 1” which it certainly is.
5
solved c# Assert.AreEqual not workng