コード例 #1
0
        public void DescriptionTestMethod()
        {
            int         _counter = 0;
            NodeFactory _nf      = new NodeFactory(x => _counter++);

            Assert.AreEqual <int>(0, _counter);
            LocalizedText _lt = new LocalizedText()
            {
                Key = "localeField", Value = "valueField"
            };

            _nf.AddDescription(_lt.Key, _lt.Value);
            Assert.AreEqual <int>(0, _counter);
            _nf.AddDescription(_lt.Key, _lt.Value);
            Assert.AreEqual <int>(1, _counter);
            _nf.AddDescription(_lt.Key, _lt.Value);
            Assert.AreEqual <int>(2, _counter);
            List <string> _path = new List <string>();
            NodeDesign    _nd   = _nf.Export(_path, (x, Y) => { });

            _lt.Compare(_nd.Description);
        }