Click here to Skip to main content
15,881,281 members
Articles / Programming Languages / C#

Sort collection class using LINQ for NUnit projects

Rate me:
Please Sign up or sign in to vote.
4.81/5 (17 votes)
15 Mar 2010CPOL6 min read 23K   186   1  
Provides a static class that can be called in NUnit projects for sorting collections and comparing them.
<?xml version="1.0" encoding="utf-8"?>
<VisualState xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ShowCheckBoxes="false">
  <TopNode>[0-1004]C:\inetpub\wwwroot\SortCollection\NUnit.Core\bin\Debug\NUnit.Core.dll</TopNode>
  <SelectedNode>[0-1000]NUnit.Core.TestClass</SelectedNode>
  <ExcludeCategories>false</ExcludeCategories>
  <Nodes>
    <Node UniqueName="[0-1004]C:\inetpub\wwwroot\SortCollection\NUnit.Core\bin\Debug\NUnit.Core.dll" Expanded="true">
      <Nodes>
        <Node UniqueName="[0-1005]NUnit" Expanded="true">
          <Nodes>
            <Node UniqueName="[0-1006]NUnit.Core" Expanded="true">
              <Nodes>
                <Node UniqueName="[0-1000]NUnit.Core.TestClass" Expanded="true">
                  <Nodes>
                    <Node UniqueName="[0-1003]NUnit.Core.TestClass.MaxItemTest" />
                    <Node UniqueName="[0-1001]NUnit.Core.TestClass.NonSortedCollectionTest" />
                    <Node UniqueName="[0-1002]NUnit.Core.TestClass.SortedCollectionTest" />
                  </Nodes>
                </Node>
              </Nodes>
            </Node>
          </Nodes>
        </Node>
      </Nodes>
    </Node>
  </Nodes>
</VisualState>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
New Zealand New Zealand
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions