~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/DisplayBindings/XmlEditor/Test/Schema/XmlSchemaNamespaceTests.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using ICSharpCode.XmlEditor;
 
5
using NUnit.Framework;
 
6
using System;
 
7
 
 
8
namespace XmlEditor.Tests.Schema
 
9
{
 
10
        /// <summary>
 
11
        /// Tests that the standard W3C namespace for XSD files is recognised.
 
12
        /// </summary>
 
13
        [TestFixture]
 
14
        public class XmlSchemaNamespaceTests
 
15
        {
 
16
                [Test]
 
17
                public void IsXmlSchemaNamespace()
 
18
                {
 
19
                        Assert.IsTrue(XmlSchemaDefinition.IsXmlSchemaNamespace("http://www.w3.org/2001/XMLSchema"));
 
20
                }
 
21
                
 
22
                [Test]
 
23
                public void IsNotXmlSchemaNamespace()
 
24
                {
 
25
                        Assert.IsFalse(XmlSchemaDefinition.IsXmlSchemaNamespace("http://foo.com"));
 
26
                }
 
27
                
 
28
                [Test]
 
29
                public void EmptyString()
 
30
                {
 
31
                        Assert.IsFalse(XmlSchemaDefinition.IsXmlSchemaNamespace(String.Empty));
 
32
                }
 
33
        }
 
34
}