AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter12.Tests/Listing.12.21.Tests.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AddisonWesley.Michaelis.EssentialCSharp.Chapter12.Listing12_13;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter12.Listing12_21.Tests
{
    [TestClass]
    public class BinaryTree
    {
        [TestMethod]
        public void Create_BinaryTree_Success()
        {
            new BinaryTree<string?>(null)
            {
                SubItems = new Pair<BinaryTree<string?>?>(
                new BinaryTree<string?>("b"),
                new BinaryTree<string?>("a"))
            };
        }

        [TestMethod]
        public void Create_BinaryTreeWithNullSubItems_Success()
        {
            new BinaryTree<string?>(null)
            {
                SubItems = new Pair<BinaryTree<string?>?>(
               null, null)
            };
        }


    }
}
