public void GetCustomizationFromNullParameterThrows()
 {
     // Fixture setup
     var sut = new NoAutoPropertiesAttribute();
     // Exercise system and verify the outcome
     Assert.Throws<ArgumentNullException>(() =>
         sut.GetCustomization(null));
 }
        public void GetCustomizationFromNullParameterThrows()
        {
            // Fixture setup
            var sut = new NoAutoPropertiesAttribute();

            // Exercise system and verify the outcome
            Assert.Throws <ArgumentNullException>(() =>
                                                  sut.GetCustomization(null));
        }
        public void GetCustomizationFromNullParameterThrows()
        {
            // Arrange
            var sut = new NoAutoPropertiesAttribute();

            // Act & Assert
            Assert.Throws <ArgumentNullException>(() =>
                                                  sut.GetCustomization(null));
        }
 public void GetCustomizationReturnsTheCorrectResult()
 {
     // Fixture setup
     var sut = new NoAutoPropertiesAttribute();
     var parameter = typeof(TypeWithOverloadedMembers)
         .GetMethod("DoSomething", new[] { typeof(object) })
         .GetParameters()
         .Single();
     // Exercise system
     var result = sut.GetCustomization(parameter);
     // Verify the outcome
     Assert.IsAssignableFrom<NoAutoPropertiesCustomization>(result);
 }
        public void GetCustomizationReturnsTheCorrectResult()
        {
            // Fixture setup
            var sut       = new NoAutoPropertiesAttribute();
            var parameter = typeof(TypeWithOverloadedMembers)
                            .GetMethod("DoSomething", new[] { typeof(object) })
                            .GetParameters()
                            .Single();
            // Exercise system
            var result = sut.GetCustomization(parameter);

            // Verify the outcome
            Assert.IsAssignableFrom <NoAutoPropertiesCustomization>(result);
        }
        public void GetCustomizationReturnsTheCorrectResult()
        {
            // Arrange
            var sut       = new NoAutoPropertiesAttribute();
            var parameter = typeof(TypeWithOverloadedMembers)
                            .GetMethod("DoSomething", new[] { typeof(object) })
                            .GetParameters()
                            .Single();
            // Act
            var result = sut.GetCustomization(parameter);

            // Assert
            Assert.IsAssignableFrom <NoAutoPropertiesCustomization>(result);
        }