コード例 #1
0
        public void PruneTest()
        {
            var ruby = new CompositeTest()
            {
                Name = "Ruby"
            };

            actual.RemoveItem("treasure / gems / rubies", ruby);
            Assert.That(actual.Count, Is.EqualTo(1));
        }
コード例 #2
0
 public void CompositeTest()
 {
     actual = new CompositeTest()
     {
         Name = "Inventory"
     };
     actual.AddItem("treasure/gems/rubies", new CompositeTest()
     {
         Name = "Ruby"
     });
     actual.AddItem("treasure/coins", new CompositeTest()
     {
         Name = "Doubloon"
     });
 }