示例#1
0
        public void GetHandlesAttribute2(Type handler, Type iface)
        {
            var expected = new HandlesAttribute("Method.Name", typeof(IDisposable));

            handler.GetHandlesAttribute(iface).Should().BeEquivalentTo(expected);
        }
示例#2
0
        public void GetHandlesAttribute1(Type handler)
        {
            var expected = new HandlesAttribute("On.Method", typeof(IDisposable));

            handler.GetHandlesAttribute().Should().BeEquivalentTo(expected);
        }