Пример #1
0
        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]}");
                }
            }
        }