ABB.Swum.Nodes.Tests.PhraseNodeTests.TestConstructor_EnumerableWordNodesEmpty C# (CSharp) Method

TestConstructor_EnumerableWordNodesEmpty() private method

private TestConstructor_EnumerableWordNodesEmpty ( ) : void
return void
        public void TestConstructor_EnumerableWordNodesEmpty() {
            var words = new WordNode[] {};
            PhraseNode pn = new PhraseNode(words, Location.Name, true);

            Assert.AreEqual(words.Length, pn.Size());
            for(int i = 0; i < pn.Size(); i++) {
                Assert.AreEqual(words[i], pn[i]);
            }
            Assert.AreEqual(Location.Name, pn.Location);
        }