Ejemplo n.º 1
0
        public void rpt_ECNToday_Class_Invalid_Property_Parameter_testblastNotPresent_Access_Using_Reflexion_Doesnt_Throw_Exception_Test()
        {
            // Arrange
            const string propertyNameParameterTestblast = "Parameter_testblastNotPresent";
            var          rptEcnToday = new rpt_ECNToday();

            // Act , Assert
            Should.NotThrow(action: () => rptEcnToday.GetType().GetProperty(propertyNameParameterTestblast));
        }
Ejemplo n.º 2
0
        public void rpt_ECNToday_Class_Invalid_Property_FullResourceNameNotPresent_Access_Using_Reflexion_Doesnt_Throw_Exception_Test()
        {
            // Arrange
            const string propertyNameFullResourceName = "FullResourceNameNotPresent";
            var          rptEcnToday = new rpt_ECNToday();

            // Act , Assert
            Should.NotThrow(action: () => rptEcnToday.GetType().GetProperty(propertyNameFullResourceName));
        }
Ejemplo n.º 3
0
        public void rpt_ECNToday_Section5_Property_Setting_String_Throw_Argument_Exception_Test()
        {
            // Arrange
            const string propertyNameSection5 = "Section5";
            var          rptEcnToday          = new rpt_ECNToday();
            var          randomString         = Fixture.Create <string>();
            var          propertyInfo         = rptEcnToday.GetType().GetProperty(propertyNameSection5);

            // Act , Assert
            propertyInfo.ShouldNotBeNull();
            Should.Throw <ArgumentException>(actual: () => propertyInfo.SetValue(rptEcnToday, randomString, null));
        }
Ejemplo n.º 4
0
        public void rpt_ECNToday_Section5_Property_Is_Present_In_Class_As_Public_Test()
        {
            // Arrange
            const string propertyNameSection5 = "Section5";
            var          rptEcnToday          = new rpt_ECNToday();
            var          propertyInfo         = rptEcnToday.GetType().GetProperty(propertyNameSection5);

            // Act
            var canRead = propertyInfo.CanRead;

            // Assert
            propertyInfo.ShouldNotBeNull();
            canRead.ShouldBeTrue();
        }
Ejemplo n.º 5
0
        public void rpt_ECNToday_Parameter_year_Property_Is_Present_In_Class_As_Public_Test()
        {
            // Arrange
            const string propertyNameParameterYear = "Parameter_year";
            var          rptEcnToday  = new rpt_ECNToday();
            var          propertyInfo = rptEcnToday.GetType().GetProperty(propertyNameParameterYear);

            // Act
            var canRead = propertyInfo.CanRead;

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