DataSharp/Mathematics/FunctionalityTest.cs
/// <summary>
/// Functionality  test method for the SetHelper.GetAllSubsets() method.
/// </summary>
Functionality  test method for the SetHelper.GetAllSubsets() method.
Functionality test method for the SetHelper . GetAllSubsets () method .
public static void AllSubsetsDemo()
        {
            int[] values = { 1, 2, 3, 4, 5 };
            SortedSet<int> set = new SortedSet<int>(values);
            foreach (ISet<int> s in SetHelper.GetAllSubsets(set))
            {
                foreach (int i in s)
                    Console.Write(i + " ");
                Console.WriteLine();
            }
        }
public static void AllSubsetsDemo ( ) { int [ ] values = { 1 , 2 , 3 , 4 , 5 } ; SortedSet < int > set = new SortedSet < int > ( values ) ; foreach ( ISet < int > s in SetHelper . GetAllSubsets ( set ) ) { foreach ( int i in s ) Console . Write ( i + " " ) ; Console . WriteLine ( ) ; } }
Functionality  test method for the SetHelper.GetAllSubsets() method.
Functionality test method for the SetHelper . GetAllSubsets () method .