Todd 9b53a8ea41 schema: check for namespaces when decoding
- check for namespaces when decoding
- merge wordprocessingDrawing into wordprocessingml, this fixes some
  issues with cyclic import paths (XML namespaces don't translate to
  to valid go namespaces due to this)
2017-09-10 10:33:53 -05:00

35 lines
1.1 KiB
Go

// Copyright 2017 Baliance. All rights reserved.
//
// DO NOT EDIT: generated by gooxml ECMA-376 generator
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.
package wordprocessingml_test
import (
"encoding/xml"
"testing"
"baliance.com/gooxml/schema/schemas.openxmlformats.org/wordprocessingml"
)
func TestWdCT_TextboxInfoConstructor(t *testing.T) {
v := wordprocessingml.NewWdCT_TextboxInfo()
if v == nil {
t.Errorf("wordprocessingml.NewWdCT_TextboxInfo must return a non-nil value")
}
if err := v.Validate(); err != nil {
t.Errorf("newly constructed wordprocessingml.WdCT_TextboxInfo should validate: %s", err)
}
}
func TestWdCT_TextboxInfoMarshalUnmarshal(t *testing.T) {
v := wordprocessingml.NewWdCT_TextboxInfo()
buf, _ := xml.Marshal(v)
v2 := wordprocessingml.NewWdCT_TextboxInfo()
xml.Unmarshal(buf, v2)
}