Exemplo n.º 1
0
        public void MethodExecuted_MethodNameNull_True()
        {
            Test1Attribute t = new Test1Attribute();

            t.OnExecuted(_executedContext);

            var result = _executedContext.MethodName;

            Assert.AreEqual(null, result);
        }
Exemplo n.º 2
0
        public void MethodExecuting_Test()
        {
            Test1Attribute t = new Test1Attribute();

            t.OnExecuting(_executing);

            var except = new object[] { "12345,,11dasd" };
            var result = _executing.Args;

            Assert.AreEqual(except, result);
        }