/// <summary> /// For debugging/testing purposes. Bypasses UserInterface class and tests individual classes directly. /// </summary> private void Testing() { #region WineItemTest Console.WriteLine(Environment.NewLine + "******************************" + Environment.NewLine + "Test For WineItem functionality." + Environment.NewLine + "******************************" + Environment.NewLine); string ID1 = "12345"; string ID2 = "67890"; string aDesc1 = "aDesc"; string aDesc2 = "OtherDesc"; string aSize1 = "Size 1"; string aSize2 = "Size 500"; WineItem WineTest1 = new WineItem(ID1, aDesc1, aSize1); WineItem WineTest2 = new WineItem(ID2, aDesc2, aSize2); Console.WriteLine("TEST- ForcePrint:" + Environment.NewLine + WineTest1.WineID + " " + WineTest1.WineDescription + " " + WineTest1.WineSize + Environment.NewLine); Console.WriteLine("TEST- ToString():"); Console.WriteLine(WineTest1.ToString()); Console.WriteLine(WineTest2.ToString()); Console.WriteLine(Environment.NewLine); #endregion #region WineItemCollectionTest Console.WriteLine(Environment.NewLine + "******************************" + Environment.NewLine + "Test For Collection functionality." + Environment.NewLine + "******************************" + Environment.NewLine); WineItemCollection collectionTest = new WineItemCollection(5); collectionTest.LoadWineItem(WineTest1, 0, 1); collectionTest.LoadWineItem(WineTest2, 1, 1); Console.WriteLine("TEST- Above items added to collection and displayed:"); Console.WriteLine(collectionTest.GetCollectionToString()); #endregion #region CSVProcessorTest Console.WriteLine(Environment.NewLine + "******************************" + Environment.NewLine + "Test For CSVProcessor functionality." + Environment.NewLine + "******************************" + Environment.NewLine); CSVProcessor loadThings = new CSVProcessor(); int ArraySize = loadThings.LoadListSize; Console.WriteLine("TEST- # of Items loaded: " + Environment.NewLine + ArraySize + Environment.NewLine); WineItemCollection wineCollection = new WineItemCollection(ArraySize); loadThings = new CSVProcessor(wineCollection, 0); Console.WriteLine("TEST- Collection Contents After Load:"); Console.WriteLine(wineCollection.GetCollectionToString()); #endregion }