コード例 #1
0
        public void ClearTest()
        {
            var collection = new ActionCollection();
            var action     = new MockAction("name", collection);

            Assert.That(collection.Contains("name"));
            collection.Clear();
            Assert.That(collection.Contains("name") == false);
        }
コード例 #2
0
        public void ContainsActionTest1()
        {
            var collection = new ActionCollection();
            var action     = new MockAction("name", collection);

            Assert.That(collection.Contains("name"));
        }
コード例 #3
0
        public void ContainsActionTest2()
        {
            var collection = new ActionCollection();
            var action     = new MockAction();

            action.NameId = "name";
            collection.Add(action);
            Assert.That(collection.Contains("name"));
        }