tkpatro123 / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Ordering in Icarus should allow sorting on Order property #834

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The ordering in Icarus should default to, or at least allow, the selection of 
sorting via the [Test(Order = "")] property rather than alphabetical sorting.

As a further issue, alphabetical sorting also doesn't work when there are 
numbers at the start of the test case (i.e. when overridden by the 
NameAttribute).

What steps will reproduce the problem?

1. Create 5 tests and set the Order property on each test to 1,2,3,4,5
2. Add NameAttribute on each test, set to 4.1.1, 4.1.2, 4.1.3, 4.1.10, 4.1.11
3. Compile and load the .dll in Icarus

What is the expected output? What do you see instead?

I expect to see the tests in the following order:

4.1.1
4.1.2
4.1.3
4.1.10
4.1.11

Instead I get:

4.1.1
4.1.10
4.1.11
4.1.2
4.1.3

What version of the product are you using? On what operating system?
Icarus 3.2 build 749 / Windows 7 / Mb Unit 3.2.0.0

Original issue reported on code.google.com by gmcdon...@rdr.id.au on 8 Apr 2011 at 2:27

GoogleCodeExporter commented 8 years ago
I've fixed the alpha-numeric sorting.

The Order might take a bit more work.

Original comment by grahamr...@gmail.com on 1 Oct 2011 at 3:10

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 2 Oct 2011 at 12:03

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 14 Oct 2011 at 7:53