unioffice/schema/soo/dml/chart/CT_PageSetup_test.go

35 lines
937 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
package chart_test
import (
"encoding/xml"
2017-08-30 17:51:35 -05:00
"testing"
"github.com/unidoc/unioffice/schema/soo/dml/chart"
2017-08-30 17:51:35 -05:00
)
func TestCT_PageSetupConstructor(t *testing.T) {
v := chart.NewCT_PageSetup()
if v == nil {
t.Errorf("chart.NewCT_PageSetup must return a non-nil value")
}
if err := v.Validate(); err != nil {
t.Errorf("newly constructed chart.CT_PageSetup should validate: %s", err)
}
}
func TestCT_PageSetupMarshalUnmarshal(t *testing.T) {
v := chart.NewCT_PageSetup()
buf, _ := xml.Marshal(v)
v2 := chart.NewCT_PageSetup()
xml.Unmarshal(buf, v2)
}