コード例 #1
0
        public void Parameters()
        {
            var proc = new TestingAttribute();
            var prop = proc.Parameters();

            Assert.AreEqual(1, prop.Count());
            Assert.AreEqual("TestMethod", prop.ElementAt(0));
        }
コード例 #2
0
        public void GetProperties()
        {
            var obj = new TestingAttribute();
            var prop = obj.GetProperties();

            Assert.AreEqual(1, prop.Count());
            Assert.AreEqual("TestMethod", prop.ElementAt(0).Name);
        }