mirror of
https://github.com/unidoc/unioffice.git
synced 2025-04-27 13:48:54 +08:00
33 lines
936 B
Go
33 lines
936 B
Go
// Copyright 2017 Baliance. All rights reserved.
|
|
//
|
|
// 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 drawingml_test
|
|
|
|
import (
|
|
"encoding/xml"
|
|
"testing"
|
|
|
|
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
|
)
|
|
|
|
func TestEG_EffectConstructor(t *testing.T) {
|
|
v := drawingml.NewEG_Effect()
|
|
if v == nil {
|
|
t.Errorf("drawingml.NewEG_Effect must return a non-nil value")
|
|
}
|
|
if err := v.Validate(); err != nil {
|
|
t.Errorf("newly constructed drawingml.EG_Effect should validate: %s", err)
|
|
}
|
|
}
|
|
|
|
func TestEG_EffectMarshalUnmarshal(t *testing.T) {
|
|
v := drawingml.NewEG_Effect()
|
|
buf, _ := xml.Marshal(v)
|
|
v2 := drawingml.NewEG_Effect()
|
|
xml.Unmarshal(buf, v2)
|
|
}
|