satinjeet / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch
Apache License 2.0
0 stars 0 forks source link

Wrong assert class used in C# language #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a solution including projects in C# language
2. Reference the nUnit framework and Microsoft Test Framework in a test project
3. Run TestMethod named: 'diff_bisectTest'

What is the expected output? What do you see instead?
Excpected output is a 'success'

What version of the product are you using? On what operating system?
I'm using VS 2008 running on a Windows 7 32bit. The code for google diff was 
downloaded from: 'diff_match_patch_20110217.zip'

Please provide any additional information below.
The problem is simple and was solved changing one line of code that occours 
twice on the same test method named 'diff_bisectTest':
from: Assert.AreEqual(diffs, dmp.diff_bisect(a, b, DateTime.MaxValue));
to: CollectionAssert.AreEqual(diffs, dmp.diff_bisect(a, b, DateTime.MaxValue));

Original issue reported on code.google.com by gncarval...@gmail.com on 4 Apr 2011 at 5:56

GoogleCodeExporter commented 8 years ago
Thanks for this (sorry it got lost in the queue).  Both Assert and 
CollectionAssert work equivalently for me on Mono, but I guess Visual Studio is 
a bit different.

I've made the change and it is out for review...

Original comment by neil.fra...@gmail.com on 4 Nov 2011 at 6:47

GoogleCodeExporter commented 8 years ago
Done.  Thanks for pointing this out!

Original comment by neil.fra...@gmail.com on 9 Nov 2011 at 9:33