Ejemplo n.º 1
0
        public void rpt_IRKMLogoClick_Class_Invalid_Property_NewGeneratorNotPresent_Access_Using_Reflexion_Doesnt_Throw_Exception_Test()
        {
            // Arrange
            const string propertyNameNewGenerator = "NewGeneratorNotPresent";
            var          rptIrkmLogoClick         = new rpt_IRKMLogoClick();

            // Act , Assert
            Should.NotThrow(action: () => rptIrkmLogoClick.GetType().GetProperty(propertyNameNewGenerator));
        }
Ejemplo n.º 2
0
        public void rpt_IRKMLogoClick_Class_Invalid_Property_Parameter_showdetailsNotPresent_Access_Using_Reflexion_Doesnt_Throw_Exception_Test()
        {
            // Arrange
            const string propertyNameParameterShowdetails = "Parameter_showdetailsNotPresent";
            var          rptIrkmLogoClick = new rpt_IRKMLogoClick();

            // Act , Assert
            Should.NotThrow(action: () => rptIrkmLogoClick.GetType().GetProperty(propertyNameParameterShowdetails));
        }
Ejemplo n.º 3
0
        public void rpt_IRKMLogoClick_Section7_Property_Setting_String_Throw_Argument_Exception_Test()
        {
            // Arrange
            const string propertyNameSection7 = "Section7";
            var          rptIrkmLogoClick     = new rpt_IRKMLogoClick();
            var          randomString         = Fixture.Create <string>();
            var          propertyInfo         = rptIrkmLogoClick.GetType().GetProperty(propertyNameSection7);

            // Act , Assert
            propertyInfo.ShouldNotBeNull();
            Should.Throw <ArgumentException>(actual: () => propertyInfo.SetValue(rptIrkmLogoClick, randomString, null));
        }
Ejemplo n.º 4
0
        public void rpt_IRKMLogoClick_Section8_Property_Is_Present_In_Class_As_Public_Test()
        {
            // Arrange
            const string propertyNameSection8 = "Section8";
            var          rptIrkmLogoClick     = new rpt_IRKMLogoClick();
            var          propertyInfo         = rptIrkmLogoClick.GetType().GetProperty(propertyNameSection8);

            // Act
            var canRead = propertyInfo.CanRead;

            // Assert
            propertyInfo.ShouldNotBeNull();
            canRead.ShouldBeTrue();
        }
Ejemplo n.º 5
0
        public void rpt_IRKMLogoClick_Parameter_showdetails_Property_Is_Present_In_Class_As_Public_Test()
        {
            // Arrange
            const string propertyNameParameterShowdetails = "Parameter_showdetails";
            var          rptIrkmLogoClick = new rpt_IRKMLogoClick();
            var          propertyInfo     = rptIrkmLogoClick.GetType().GetProperty(propertyNameParameterShowdetails);

            // Act
            var canRead = propertyInfo.CanRead;

            // Assert
            propertyInfo.ShouldNotBeNull();
            canRead.ShouldBeTrue();
        }