示例#1
0
        public void TestToData()
        {
            var testSubject = new IObviate[]
            {
                StandardIndustryClassification.RandomStandardIndustryClassification()
            };

            foreach (var ts in testSubject)
            {
                Console.WriteLine();
                var testResult = ts.ToData(KindsOfTextCase.Kabab);
                Assert.IsNotNull(testResult);
                Assert.AreNotEqual(0, testResult.Count);
                foreach (var k in testResult.Keys)
                {
                    Console.WriteLine($"{k}: {testResult[k]}");
                }
            }
        }
        public void TestToData()
        {
            var testSubject = new IObviate[]
            {
                NaicsSector.RandomNaicsSector(), NaicsPrimarySector.RandomNaicsPrimarySector(),
                NaicsSuperSector.RandomNaicsSuperSector(), NaicsMarket.RandomNaicsMarket()
            };

            foreach (var ts in testSubject)
            {
                Console.WriteLine();
                var testResult = ts.ToData(KindsOfTextCase.Kabab);
                Assert.IsNotNull(testResult);
                Assert.AreNotEqual(0, testResult.Count);
                foreach (var k in testResult.Keys)
                {
                    Console.WriteLine($"{k}: {testResult[k]}");
                }
            }
        }
        public void TestToData()
        {
            var testSubject = new IObviate[]
            {
                SocBoardGroup.RandomSocBoardGroup(), SocMajorGroup.RandomSocMajorGroup(),
                SocMinorGroup.RandomSocMinorGroup(), SocDetailedOccupation.RandomSocDetailedOccupation()
            };

            foreach (var ts in testSubject)
            {
                Console.WriteLine();
                var testResult = ts.ToData(KindsOfTextCase.Kabab);
                Assert.IsNotNull(testResult);
                Assert.AreNotEqual(0, testResult.Count);
                foreach (var k in testResult.Keys)
                {
                    Console.WriteLine($"{k}: {testResult[k]}");
                }
            }
        }
示例#4
0
        public void TestToData()
        {
            IObviate testSubject = CityArea.RandomAmericanCity();
            var      testResult  = testSubject.ToData(KindsOfTextCase.Kabab);

            Assert.IsNotNull(testResult);
            Assert.AreNotEqual(0, testResult.Count);
            foreach (var tr in testResult.Keys)
            {
                Console.WriteLine($"{tr}, {testResult[tr]}");
            }

            testSubject = CityArea.RandomCanadianCity();
            testResult  = testSubject.ToData(KindsOfTextCase.Kabab);
            Assert.IsNotNull(testResult);
            Assert.AreNotEqual(0, testResult.Count);
            foreach (var tr in testResult.Keys)
            {
                Console.WriteLine($"{tr}, {testResult[tr]}");
            }
        }