Пример #1
0
        public void Initialization_NullName()
        {
            var member = ReflectionObjectMother.GetSomeMember();
            var type   = ReflectionObjectMother.GetSomeType();

            var parameter = new TestableCustomParameterInfo(member, 7, null, type, (ParameterAttributes)7);

            Assert.That(parameter.Name, Is.Null);
        }
Пример #2
0
        public void SetUp()
        {
            _member     = ReflectionObjectMother.GetSomeMember();
            _position   = 7;
            _name       = "abc";
            _type       = ReflectionObjectMother.GetSomeType();
            _attributes = (ParameterAttributes)7;

            _parameter = new TestableCustomParameterInfo(_member, _position, _name, _type, _attributes);
        }