unioffice/schema/soo/dml/CT_AlphaModulateFixedEffect_test.go

35 lines
1.0 KiB
Go
Raw Normal View History

// Copyright 2017 FoxyUtils ehf. All rights reserved.
2017-08-30 17:51:35 -05:00
//
// 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
2019-08-02 13:49:16 +03:00
// commercial license can be purchased via https://unidoc.io website.
2017-08-30 17:51:35 -05:00
2017-09-23 08:39:08 -05:00
package dml_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/dml"
2017-08-30 17:51:35 -05:00
)
func TestCT_AlphaModulateFixedEffectConstructor(t *testing.T) {
2017-09-23 08:39:08 -05:00
v := dml.NewCT_AlphaModulateFixedEffect()
2017-08-30 17:51:35 -05:00
if v == nil {
2017-09-23 08:39:08 -05:00
t.Errorf("dml.NewCT_AlphaModulateFixedEffect must return a non-nil value")
2017-08-30 17:51:35 -05:00
}
if err := v.Validate(); err != nil {
2017-09-23 08:39:08 -05:00
t.Errorf("newly constructed dml.CT_AlphaModulateFixedEffect should validate: %s", err)
2017-08-30 17:51:35 -05:00
}
}
func TestCT_AlphaModulateFixedEffectMarshalUnmarshal(t *testing.T) {
2017-09-23 08:39:08 -05:00
v := dml.NewCT_AlphaModulateFixedEffect()
buf, _ := xml.Marshal(v)
2017-09-23 08:39:08 -05:00
v2 := dml.NewCT_AlphaModulateFixedEffect()
xml.Unmarshal(buf, v2)
}