Exemplo n.º 1
0
        public void SetUp()
        {
            IReflectionUtil reflectionUtil = MockRepository.GenerateStub <IReflectionUtil>();

            reflectionUtil.Stub(p => p.IsDefaultValue(Arg <int> .Is.Anything)).Return(true);

            propertyNamer = new PropertyNamerStub(reflectionUtil);
        }
        public void SetUp()
        {
            BuilderSettings builderSettings = new BuilderSettings();
            IReflectionUtil reflectionUtil  = Substitute.For <IReflectionUtil>();

            reflectionUtil.IsDefaultValue(Arg.Any <int?>()).Returns(true);

            propertyNamer = new PropertyNamerStub(reflectionUtil, builderSettings);
        }