// ==++== // // // Copyright (c) 2002 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to be bound by the // terms of this license. // // You must not remove this notice, or any other, from this software. // // // ==--== using System; using System.Threading; using System.IO; using System.Collections; public class Co3955ToArray { public static String s_strActiveBugNums = ""; public static String s_strDtTmVer = ""; public static String s_strClassMethod = "Stack.ToArray()"; public static String s_strTFName = "Co3955ToArray.cs"; public static String s_strTFAbbrev = s_strTFName.Substring(0, 6); public static String s_strTFPath = Environment.CurrentDirectory; public bool runTest() { Console.WriteLine(s_strTFPath + " " + s_strTFName + " , for " + s_strClassMethod + " , Source ver : " + s_strDtTmVer); int iCountErrors = 0; int iCountTestcases = 0; String strLoc = "Loc_000oo"; Stack stk1; Object[] oArr; Int32 iNumberOfElements; String strValue; try { do { stk1 = new Stack(); oArr = stk1.ToArray(); iCountTestcases++; if(oArr.Length!=0) { iCountErrors++; Console.WriteLine("Err_752dsg! Expected value not returned, " + oArr.Length); } iNumberOfElements = 10; for(int i=0; i