예제 #1
0
        private static void RunTestCase(Func <CTestBase> testCaseGenerator)
        {
            var module = new CNameTableTestModule();

            module.Init(null);
            module.AddChild(testCaseGenerator());
            module.Execute();

            Assert.Equal(0, module.FailCount);
        }
예제 #2
0
        private static void RunTestCase(Func<CTestBase> testCaseGenerator)
        {
            var module = new CNameTableTestModule();

            module.Init(null);
            module.AddChild(testCaseGenerator());
            module.Execute();

            Assert.Equal(0, module.FailCount);
        }
예제 #3
0
        public static CTestModule Create()
        {
            var module = new CNameTableTestModule();

            module.Init(null);
            module.AddChild(new TCUserNameTable()
            {
                Attribute = new TestCase()
                {
                    Name = "XmlNameTable user scenario inheritance", Desc = "XmlNameTable inheritance"
                }
            });
            module.AddChild(new TCRecordNameTableGet()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Get) VerifyWGetChar", Desc = "VerifyWGetChar"
                }
            });
            module.AddChild(new TCRecordNameTableGet()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Get) VerifyWAddChar", Desc = "VerifyWAddChar"
                }
            });
            module.AddChild(new TCRecordNameTableGet()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Get) VerifyWAddString", Desc = "VerifyWAddString"
                }
            });
            module.AddChild(new TCRecordNameTableGet()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Get) VerifyWGetString", Desc = "VerifyWGetString"
                }
            });
            module.AddChild(new TCRecordNameTableAdd()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Add) VerifyWAddChar", Desc = "VerifyWAddChar"
                }
            });
            module.AddChild(new TCRecordNameTableAdd()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Add) VerifyWGetChar", Desc = "VerifyWGetChar"
                }
            });
            module.AddChild(new TCRecordNameTableAdd()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Add) VerifyWAddString", Desc = "VerifyWAddString"
                }
            });
            module.AddChild(new TCRecordNameTableAdd()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Add) VerifyWGetString", Desc = "VerifyWGetString"
                }
            });
            module.AddChild(new TCRecordNameTableGet()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Get) VerifyWAddString", Desc = "VerifyWAddString"
                }
            });
            module.AddChild(new TCRecordNameTableGet()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Get) VerifyWGetString", Desc = "VerifyWGetString"
                }
            });
            module.AddChild(new TCRecordNameTableAdd()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Add) VerifyWAddChar", Desc = "VerifyWAddChar"
                }
            });
            module.AddChild(new TCRecordNameTableAdd()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Add) VerifyWGetChar", Desc = "VerifyWGetChar"
                }
            });
            module.AddChild(new TCRecordNameTableAdd()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Add) VerifyWAddString", Desc = "VerifyWAddString"
                }
            });
            module.AddChild(new TCRecordNameTableAdd()
            {
                Attribute = new TestCase()
                {
                    Name = "NameTable(Add) VerifyWGetString", Desc = "VerifyWGetString"
                }
            });

            return(module);
        }