unioffice/schema/soo/pml/CT_ViewProperties_test.go

35 lines
954 B
Go
Raw Normal View History

// Copyright 2020 FoxyUtils ehf. All rights reserved.
2017-08-30 17:51:35 -05:00
//
// DO NOT EDIT: generated by unioffice ECMA-376 generator
//
// Use of this software package and source code is governed by the terms of the
// UniDoc End User License Agreement (EULA) that is available at:
// https://unidoc.io/eula/
// A trial license code for evaluation can be obtained at https://unidoc.io website.
2017-08-30 17:51:35 -05:00
2017-09-23 08:30:59 -05:00
package pml_test
2017-08-30 17:51:35 -05:00
import (
"encoding/xml"
2017-08-30 17:51:35 -05:00
"testing"
"github.com/unidoc/unioffice/schema/soo/pml"
2017-08-30 17:51:35 -05:00
)
func TestCT_ViewPropertiesConstructor(t *testing.T) {
2017-09-23 08:30:59 -05:00
v := pml.NewCT_ViewProperties()
2017-08-30 17:51:35 -05:00
if v == nil {
2017-09-23 08:30:59 -05:00
t.Errorf("pml.NewCT_ViewProperties must return a non-nil value")
2017-08-30 17:51:35 -05:00
}
if err := v.Validate(); err != nil {
2017-09-23 08:30:59 -05:00
t.Errorf("newly constructed pml.CT_ViewProperties should validate: %s", err)
2017-08-30 17:51:35 -05:00
}
}
func TestCT_ViewPropertiesMarshalUnmarshal(t *testing.T) {
2017-09-23 08:30:59 -05:00
v := pml.NewCT_ViewProperties()
buf, _ := xml.Marshal(v)
2017-09-23 08:30:59 -05:00
v2 := pml.NewCT_ViewProperties()
xml.Unmarshal(buf, v2)
}