{"action":"created","issue":{"url":"https://api.github.com/repos/nunit/nunit/issues/1553","repository_url":"https://api.github.com/repos/nunit/nunit","labels_url":"https://api.github.com/repos/nunit/nunit/issues/1553/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/1553/comments","events_url":"https://api.github.com/repos/nunit/nunit/issues/1553/events","html_url":"https://github.com/nunit/nunit/issues/1553","id":159105649,"number":1553,"title":"Allow ordering tests to be done in multiple properties","user":{"login":"labilbe","id":54315,"avatar_url":"https://avatars.githubusercontent.com/u/54315?v=3","gravatar_id":"","url":"https://api.github.com/users/labilbe","html_url":"https://github.com/labilbe","followers_url":"https://api.github.com/users/labilbe/followers","following_url":"https://api.github.com/users/labilbe/following{/other_user}","gists_url":"https://api.github.com/users/labilbe/gists{/gist_id}","starred_url":"https://api.github.com/users/labilbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labilbe/subscriptions","organizations_url":"https://api.github.com/users/labilbe/orgs","repos_url":"https://api.github.com/users/labilbe/repos","events_url":"https://api.github.com/users/labilbe/events{/privacy}","received_events_url":"https://api.github.com/users/labilbe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nunit/nunit/labels/easyfix","name":"easyfix","color":"009800"},{"url":"https://api.github.com/repos/nunit/nunit/labels/is:enhancement","name":"is:enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/nunit/nunit/labels/pri:normal","name":"pri:normal","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/nunit/nunit/milestones/21","html_url":"https://github.com/nunit/nunit/milestones/Backlog","labels_url":"https://api.github.com/repos/nunit/nunit/milestones/21/labels","id":1444615,"number":21,"title":"Backlog","description":"This pseudo-milestone contains all items accepted for implementation but not assigned to a specific milestone. Developers should give priority to work on the current milestone, but may also chose items from the backlog to work on.","creator":{"login":"CharliePoole","id":2678661,"avatar_url":"https://avatars.githubusercontent.com/u/2678661?v=3","gravatar_id":"","url":"https://api.github.com/users/CharliePoole","html_url":"https://github.com/CharliePoole","followers_url":"https://api.github.com/users/CharliePoole/followers","following_url":"https://api.github.com/users/CharliePoole/following{/other_user}","gists_url":"https://api.github.com/users/CharliePoole/gists{/gist_id}","starred_url":"https://api.github.com/users/CharliePoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharliePoole/subscriptions","organizations_url":"https://api.github.com/users/CharliePoole/orgs","repos_url":"https://api.github.com/users/CharliePoole/repos","events_url":"https://api.github.com/users/CharliePoole/events{/privacy}","received_events_url":"https://api.github.com/users/CharliePoole/received_events","type":"User","site_admin":false},"open_issues":153,"closed_issues":0,"state":"open","created_at":"2015-12-04T17:34:57Z","updated_at":"2016-06-11T20:20:35Z","due_on":"2020-12-31T08:00:00Z","closed_at":null},"comments":10,"created_at":"2016-06-08T08:21:29Z","updated_at":"2016-06-12T19:51:38Z","closed_at":null,"body":"On SQL queries, I tend to order by multiple columns and not only one.\r\nI would like NUnit handles this case and allows unit testing not only on one property but on multiple properties.\r\n\r\nThe general idea is to be able to do the following:\r\n\r\n`var list = new List<Tuple<string, string>>`\r\n`{`\r\n`    new Tuple<string, string>(\"aaaa\", \"bbbb\"),`\r\n`    new Tuple<string, string>(\"bbbb\", \"aaaa\"),`\r\n`    new Tuple<string, string>(\"aaaa\", \"cccc\"),`\r\n`    new Tuple<string, string>(\"cccc\", \"bbbb\")`\r\n`};`\r\n`var ordered = list.OrderBy(p => p.Item1).ThenBy(p => p.Item2);`\r\n\r\n`Assert.That(ordered, Is.Ordered.By(\"Item1\").By(\"Item2\"));`\r\nor\r\n`Assert.That(ordered, Is.Ordered.By(\"Item1\").And.By(\"Item2\"));`\r\nor\r\n`Assert.That(ordered, Is.Ordered.By(\"Item1\").ThenBy(\"Item2\"));`\r\n\r\nI was looking for this feature on [SO](http://stackoverflow.com/questions/37676739/how-to-check-list-orders-further-properties-with-nunit/) and Charlie Poole sent me here.\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/nunit/nunit/issues/comments/225456659","html_url":"https://github.com/nunit/nunit/issues/1553#issuecomment-225456659","issue_url":"https://api.github.com/repos/nunit/nunit/issues/1553","id":225456659,"user":{"login":"labilbe","id":54315,"avatar_url":"https://avatars.githubusercontent.com/u/54315?v=3","gravatar_id":"","url":"https://api.github.com/users/labilbe","html_url":"https://github.com/labilbe","followers_url":"https://api.github.com/users/labilbe/followers","following_url":"https://api.github.com/users/labilbe/following{/other_user}","gists_url":"https://api.github.com/users/labilbe/gists{/gist_id}","starred_url":"https://api.github.com/users/labilbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labilbe/subscriptions","organizations_url":"https://api.github.com/users/labilbe/orgs","repos_url":"https://api.github.com/users/labilbe/repos","events_url":"https://api.github.com/users/labilbe/events{/privacy}","received_events_url":"https://api.github.com/users/labilbe/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T19:51:38Z","updated_at":"2016-06-12T19:51:38Z","body":"I like 'apply to both properties'."}}
{"actor":{"display_login":"labilbe"}}