# $Id: tc_xml_document_write.rb,v 1.2 2003/02/06 00:22:57 sean Exp $

class TC_XML_Document_Write < Test::Unit::TestCase
  def setup()
    @doc = XML::Document.new('1.0')
    assert_instance_of(XML::Document, @doc)
  end

  def teardown()
    @doc = nil
  end

  def test_ruby_xml_document_write_initialize()
    assert_instance_of(XML::Document, XML::Document.new())
    assert_equal('1.0', @doc.version)
  end # def test_ruby_xml_document_initialize()

  def test_ruby_xml_document_write_initialize2()
    doc = XML::Document.new('6.9')
    assert_instance_of(XML::Document, doc)
    assert_equal('6.9', doc.version)
  end # def test_ruby_xml_document_initialize2()
end # TC_XML_Document_Write
