Пример #1
0
        public void TestAttendancePatternXmlLang()
        {
            XCRI.Interfaces.IAttendancePattern attendancePattern = new XCRI.AttendancePattern()
            {
                Value       = "Sample attendance pattern (no terms) in Spanish",
                XmlLanguage = "es"
            };

            this.TestNode
            (
                this.Generate(attendancePattern),
                (n) => { HasAttributeWithValue(n, "lang", XCRI.Configuration.Namespaces.XmlNamespace, "es"); }
            );
        }
Пример #2
0
        public void TestAttendancePattern()
        {
            XCRI.Interfaces.IAttendancePattern attendancePattern = new XCRI.AttendancePattern()
            {
                Value = "Sample attendance pattern (no terms)"
            };

            this.TestNode
            (
                this.Generate(attendancePattern),
                (n) => { HasCorrectNameAndNamespace(n, "attendancePattern", XCRI.Configuration.Namespaces.XCRICAP11NamespaceUri); },
                (n) => { ContainsStringValue(n, "Sample attendance pattern (no terms)"); }
            );
        }