Example #1
0
 public void OneTimeSetup()
 {
     _tasksInstanceType    = typeof(tasks);
     _tasksInstanceFixture = this.Create <tasks>(true);
     _tasksInstance        = _tasksInstanceFixture ?? this.Create <tasks>(false);
     CurrentInstance       = _tasksInstanceFixture;
     ConfigureIgnoringTests();
 }
 public void OneTimeSetup()
 {
     _showerrorInstanceType    = typeof(showerror);
     _showerrorInstanceFixture = this.Create <showerror>(true);
     _showerrorInstance        = _showerrorInstanceFixture ?? this.Create <showerror>(false);
     CurrentInstance           = _showerrorInstanceFixture;
     ConfigureIgnoringTests();
 }
 public void OneTimeSetup()
 {
     _csvImportJobInstanceType    = typeof(CsvImportJob);
     _csvImportJobInstanceFixture = this.Create <CsvImportJob>(true);
     _csvImportJobInstance        = _csvImportJobInstanceFixture ?? this.Create <CsvImportJob>(false);
     CurrentInstance = _csvImportJobInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #4
0
 public void OneTimeSetup()
 {
     _resourceInformationInstanceType    = typeof(ResourceInformation);
     _resourceInformationInstanceFixture = this.Create <ResourceInformation>(true);
     _resourceInformationInstance        = _resourceInformationInstanceFixture ?? this.Create <ResourceInformation>(false);
     CurrentInstance = _resourceInformationInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #5
0
 public void OneTimeSetup()
 {
     _getmenuInstanceType    = typeof(getmenu);
     _getmenuInstanceFixture = this.Create <getmenu>(true);
     _getmenuInstance        = _getmenuInstanceFixture ?? this.Create <getmenu>(false);
     CurrentInstance         = _getmenuInstanceFixture;
     ConfigureIgnoringTests();
 }
 public void OneTimeSetup()
 {
     _updatetaskInstanceType    = typeof(updatetask);
     _updatetaskInstanceFixture = this.Create <updatetask>(true);
     _updatetaskInstance        = _updatetaskInstanceFixture ?? this.Create <updatetask>(false);
     CurrentInstance            = _updatetaskInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #7
0
 public void OneTimeSetup()
 {
     _plannerCoreInstanceType    = typeof(PlannerCore);
     _plannerCoreInstanceFixture = this.Create <PlannerCore>(true);
     _plannerCoreInstance        = _plannerCoreInstanceFixture ?? this.Create <PlannerCore>(false);
     CurrentInstance             = _plannerCoreInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #8
0
 public void OneTimeSetup()
 {
     _workplannerconfigInstanceType    = typeof(workplannerconfig);
     _workplannerconfigInstanceFixture = this.Create <workplannerconfig>(true);
     _workplannerconfigInstance        = _workplannerconfigInstanceFixture ?? this.Create <workplannerconfig>(false);
     CurrentInstance = _workplannerconfigInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #9
0
 public void OneTimeSetup()
 {
     _edititemInstanceType    = typeof(edititem);
     _edititemInstanceFixture = this.Create <edititem>(true);
     _edititemInstance        = _edititemInstanceFixture ?? this.Create <edititem>(false);
     CurrentInstance          = _edititemInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #10
0
 public void OneTimeSetup()
 {
     _kanBanPlannerInstanceType    = typeof(KanBanPlanner);
     _kanBanPlannerInstanceFixture = this.Create <KanBanPlanner>(true);
     _kanBanPlannerInstance        = _kanBanPlannerInstanceFixture ?? this.Create <KanBanPlanner>(false);
     CurrentInstance = _kanBanPlannerInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #11
0
        public void AUT_PlannerCore_getWorkPlannerFromTaskList_Static_Method_DirectCall_No_Exception_Thrown_Test()
        {
            // Arrange
            this.ValidateExecuteCondition(MethodgetWorkPlannerFromTaskList);
            var    w             = this.CreateType <SPWeb>();
            var    list          = this.CreateType <string>();
            Action executeAction = null;

            // Act
            executeAction = () => PlannerCore.getWorkPlannerFromTaskList(w, list);

            // Assert
            Should.NotThrow(executeAction);
        }
Example #12
0
        public void AUT_PlannerCore_getResourceList_Static_Method_DirectCall_Throw_Exception_Test()
        {
            // Arrange
            this.ValidateExecuteCondition(MethodgetResourceList);
            var    input         = this.CreateType <string>();
            var    oWeb          = this.CreateType <SPWeb>();
            Action executeAction = null;

            // Act
            executeAction = () => PlannerCore.getResourceList(input, oWeb);

            // Assert
            Should.Throw <Exception>(executeAction);
        }
        public void AUT_Constructor_showerror_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            showerror instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
            _showerrorInstanceType.ShouldNotBeNull();
            _showerrorInstance.ShouldNotBeNull();
            _showerrorInstanceFixture.ShouldNotBeNull();
            _showerrorInstance.ShouldBeAssignableTo <showerror>();
            _showerrorInstanceFixture.ShouldBeAssignableTo <showerror>();
        }
Example #14
0
        public void AUT_Constructor_ResourceInformation_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            ResourceInformation instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
            _resourceInformationInstanceType.ShouldNotBeNull();
            _resourceInformationInstance.ShouldNotBeNull();
            _resourceInformationInstanceFixture.ShouldNotBeNull();
            _resourceInformationInstance.ShouldBeAssignableTo <ResourceInformation>();
            _resourceInformationInstanceFixture.ShouldBeAssignableTo <ResourceInformation>();
        }
Example #15
0
        public void AUT_Constructor_workplannerconfig_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            workplannerconfig instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
            _workplannerconfigInstanceType.ShouldNotBeNull();
            _workplannerconfigInstance.ShouldNotBeNull();
            _workplannerconfigInstanceFixture.ShouldNotBeNull();
            _workplannerconfigInstance.ShouldBeAssignableTo <workplannerconfig>();
            _workplannerconfigInstanceFixture.ShouldBeAssignableTo <workplannerconfig>();
        }