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)
5
using ICSharpCode.XmlEditor;
8
namespace XmlEditor.Tests.Editor
11
public class IsEmptySchemaAssociationTests
14
public void SchemaAssociationWithBlankFileExtensionAndNamespaceUriAndNamespacePrefixIsEmpty()
16
XmlSchemaFileAssociation schemaAssociation = new XmlSchemaFileAssociation(String.Empty, String.Empty, String.Empty);
17
Assert.IsTrue(schemaAssociation.IsEmpty);
21
public void SchemaAssociationWithFileExtensionIsNotEmpty()
23
XmlSchemaFileAssociation schemaAssociation = new XmlSchemaFileAssociation(".fileExt", String.Empty, String.Empty);
24
Assert.IsFalse(schemaAssociation.IsEmpty);
28
public void SchemaAssociationWithNamespaceUriIsNotEmpty()
30
XmlSchemaFileAssociation schemaAssociation = new XmlSchemaFileAssociation(String.Empty, "namespace-uri", String.Empty);
31
Assert.IsFalse(schemaAssociation.IsEmpty);
35
public void SchemaAssociationWithNamespacePrefixIsNotEmpty()
37
XmlSchemaFileAssociation schemaAssociation = new XmlSchemaFileAssociation(String.Empty, String.Empty, "prefix");
38
Assert.IsFalse(schemaAssociation.IsEmpty);