Click here to Skip to main content
15,885,985 members
Articles / Programming Languages / C#

A Very Lightweight Platform for Testing in Console Mode

Rate me:
Please Sign up or sign in to vote.
4.33/5 (2 votes)
31 Jan 2010CPOL4 min read 20.6K   108   13  
A library to help a developer to test core business operations in console mode before integration in larger UI project
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OBP.Design.Test.Engine;
using TestMachines.Classes;

namespace TestMachines.SoftwareTest
{
    /// <summary>
    /// this class is used to test software
    /// </summary>
    class SoftwareTest : CustomConsoleTest
    {
        /// <summary>
        /// machine test
        /// </summary>
        private MachineTest _machineTest = new MachineTest();

        /// <summary>
        /// part test
        /// </summary>
        private PartTest _partTest = new PartTest();

        /// <summary>
        /// launches machines test
        /// </summary>
        [TestMethod("Machines")]        
        private void ExecuteMachineTest()
        {
            _machineTest.Execute();
        }

        [TestMethod("Parts")]
        private void ExecutePartTest()
        {
            _partTest.Execute();
        }
        /// <summary>
        /// I make my initializations here
        /// </summary>
        static SoftwareTest()
        {
            Machine.CreateInstances();
            SparePart.CreateInstances();
        }

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect OBP Technologies
Algeria Algeria
OBP Technologies is one of the first .NET and C# consulting companies in Algeria.

OBP delivers high-quality products and services targeting various domains such as education, systems integration and offshore IT services. OBP focuses the offered services on Micrsoft technologies and specially The .NET framework.

We offer valuable and affordable services experience to local and international industrial, educational and governmental institutions.
This is a Organisation (No members)


Comments and Discussions