unioffice/schema/soo/pml/CT_SlideSize_test.go
Gunnsteinn Hall 5335bf249b
License update (#426)
* update license and terms

* Fixes

* Create ACKNOWLEDGEMENTS.md

* Update ACKNOWLEDGEMENTS.md

* Revert go.mod changes and remove go1.11 tests
2020-08-08 01:01:05 +00:00

35 lines
919 B
Go

// Copyright 2020 FoxyUtils ehf. All rights reserved.
//
// 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.
package pml_test
import (
"encoding/xml"
"testing"
"github.com/unidoc/unioffice/schema/soo/pml"
)
func TestCT_SlideSizeConstructor(t *testing.T) {
v := pml.NewCT_SlideSize()
if v == nil {
t.Errorf("pml.NewCT_SlideSize must return a non-nil value")
}
if err := v.Validate(); err != nil {
t.Errorf("newly constructed pml.CT_SlideSize should validate: %s", err)
}
}
func TestCT_SlideSizeMarshalUnmarshal(t *testing.T) {
v := pml.NewCT_SlideSize()
buf, _ := xml.Marshal(v)
v2 := pml.NewCT_SlideSize()
xml.Unmarshal(buf, v2)
}