unioffice/schema/soo/sml/CT_RevisionCustomView_test.go

35 lines
1013 B
Go
Raw Permalink Normal View History

2017-08-30 17:51:35 -05:00
// Copyright 2017 Baliance. All rights reserved.
//
// DO NOT EDIT: generated by gooxml ECMA-376 generator
//
2017-08-30 17:51:35 -05:00
// 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.
2017-09-23 08:23:34 -05:00
package sml_test
2017-08-30 17:51:35 -05:00
import (
"encoding/xml"
2017-08-30 17:51:35 -05:00
"testing"
2017-09-23 08:23:34 -05:00
"baliance.com/gooxml/schema/soo/sml"
2017-08-30 17:51:35 -05:00
)
func TestCT_RevisionCustomViewConstructor(t *testing.T) {
2017-09-23 08:23:34 -05:00
v := sml.NewCT_RevisionCustomView()
2017-08-30 17:51:35 -05:00
if v == nil {
2017-09-23 08:23:34 -05:00
t.Errorf("sml.NewCT_RevisionCustomView must return a non-nil value")
2017-08-30 17:51:35 -05:00
}
if err := v.Validate(); err != nil {
2017-09-23 08:23:34 -05:00
t.Errorf("newly constructed sml.CT_RevisionCustomView should validate: %s", err)
2017-08-30 17:51:35 -05:00
}
}
func TestCT_RevisionCustomViewMarshalUnmarshal(t *testing.T) {
2017-09-23 08:23:34 -05:00
v := sml.NewCT_RevisionCustomView()
buf, _ := xml.Marshal(v)
2017-09-23 08:23:34 -05:00
v2 := sml.NewCT_RevisionCustomView()
xml.Unmarshal(buf, v2)
}