Moved through the following MS Unit Test:
[TestMethod] public void PersonRepository_AddressCountForSinglePerson_IsNotEqualToZero() {
I have never seen the use of generics in making statements.
This is how I write the statement:
What is the difference?
When I'm overloaded with the AreNotEqual() overload that I use, the method uses an overload that compares two doubles (not sure why there is no int, int overload).
And if I do , enter the generic parameter type <int> , ReSharper says it's redundant.
So my question is: if the way I do this is still type safe, why use general statements?
generics c # unit-testing assertions mstest
RPM1984
source share