How to: Why does this assert throw a format exception when comparing structures?
How to: Why does this assert throw a format exception when comparing structures?
Why does this assert throw a format exception when comparing structures?
I’m trying to assert the equality of two System.Drawing.Size structures, and I’m getting a format exception instead of the expected assert failure.
[TestMethod] public void AssertStructs() { var struct1 = new Size(0, 0); var struct2 = new Size(1, 1); //This throws a format exception, "System.FormatException: Input string…
View On WordPress











