C# Corner

Resources  
  • Testing .Net Components Using NUnitMar 08, 2001. Write unit tests before starting development". Writing test allows me to see immediate results of every code change.
  • XML Strengths and Weaknesses with DOM, ASP, and XSLApr 30, 2001. In this article we're going to take a look at some of the terminology that comes with using XML and its related technologies, as well as how to create and transform XML documents with XSL using Microsoft's MSXML parser. To test the code samples shown in this article you should be running Windows NT/2000/XP with IIS installed. You should also have SQL server 2000 installed on the same machine.
  • Snooping on C#.NET Regular ExpressionsJun 26, 2001. I present here two micro test utils, which will let you play with regular expressions. Regular expression( System.Text.RegularExpressions.Regex ) is a powerful class very useful for parsing, splitting or replacing texts.
  • Horoscope Unit of Mobile SiteSep 06, 2001. Horoscope Service for Your Mobile.
  • Mobile Page Unit of Mobile SiteSep 19, 2001. This is something like creating WAP Pages it is still as usual my basic starting So here i will be storing only some info but What it exactly is the same as if people heard of WAP Pages and many sites offer you to create your own WAP Pages similar to WebPages but limit it to the device size and strength.
  • Mobile Page View UnitSep 24, 2001. This addition to the site retrieves the unit and shows the content of that page.
  • Encapsulation in C#Oct 12, 2001. In Object Oriented programming Encapsulation is the first pace. Encapsulation is the procedure of covering up of data and functions into a single unit (called class).
  • NUnit for people who can't cook - Part IDec 13, 2001. This article should l help C# user to get the most out of NUnit. Therefore, we are going to cover not only the usage of NUnit , but also the small tricks on how to set it up most efficiently.
  • NUnit for people who can't workJan 02, 2002. In this lesson I will show how to numerically solve algebraic and ordinary differential equations, and perform numerical integration with Simpson method.
  • Marble Solitaire Solution Display in GDI+Feb 13, 2002. The application finds and displays solutions to a game of solitaire. The application was written using Visual Studio.NET Version 7.0.9254. The test suite was written using NUnit, which is a .NET port of JUnit.
  • Drawing Transparent Images and Shapes using Alpha BlendingApr 22, 2002. Alpha blending is a process of mixing colors and generating a transparent affect. To test this, you draw some graphics shapes on a surface and draw image on top of those shapes and you should be able to see the shapes.
  • A Database Component: Inserting Serializable ObjectsApr 23, 2002. The attached zip file contains two projects - a database component (DLL) project and a Windows forms project called Test. Both projects are written and compiled using Visual Studio .NET version 1.0.
  • Unit Conversion Tool for Pocket PC with Compact FrameworkMay 22, 2002. I have created a Unit conversion tool to calculate conversion from 16 different types.
  • Windows Spell Checker using SpellCheck.NET ParserJun 26, 2002. In this article, I put SpellCheck.net parser to the test with Windows Form Spell Checker application.
  • Deploying a COM Component from C#Jul 08, 2002. Here is some code to help you to deploy a COM component from C#. I needed to programmatically deploy a project that would be registered as COM object (not COM+) and be installed into GAC. The following two classes will help in this objective.
  • Using Crystal Report ViewerJul 31, 2002. The following small application is designed to allow testing created reports with XML feeds used as data sources. .
  • Testing .NET applicationsFeb 16, 2004. This white paper shares vision and challenges in testing .NET applications. Never before, has any technology or framework tried bringing many disparate systems and languages under one roof for the benefit of enterprise applications.
  • Fundamentals of Function Point Analysis Part IFeb 17, 2004. Function points are a unit measure for software much like an hour is to measuring time, miles are to measuring distance or Celsius is to measuring temperature.
  • Fundamentals of Function Point Analysis Part IIFeb 18, 2004. Function points are a unit measure for software much like an hour is to measuring time, miles are to measuring distance or Celsius is to measuring temperature.
  • Evolving Numeric Series using Genetic Algorithms in C#Jul 27, 2004. If you ever browsed around the book store, you'll notice these puzzle books or IQ test books and some of the books contain questions asking you to complete a series of numbers.
  • Extreme ProgrammingSep 16, 2004. Extreme Programming is new development technique getting adopted in the software development and the key strength of this methodology is simplicity, team work, quality and testing.
  • Microsoft Application Center TestOct 13, 2004. Application Center Test (ACT) stress tests Web servers and analyze performance and scalability problems of Web applications. ACT simulates a large group of users by opening multiple connections to the server and rapidly sending HTTP requests. It also supports several other authentication schemes and the SSL protocol, making it ideal for testing personalized and secure sites.
  • Getting Web Statistics for Instant Downloads in ASP.NETNov 05, 2004. One of the most important website activity parameters is the resource access statistic. Such information is necessary for many purposes - optimizing of the website content, marketing campaigns improvements and also for some diagnostic tests.
  • Enterprise Library 1.0Apr 02, 2005. Enterprise Library is a set of tested, reusable application blocks that address common problems developers face when developing enterprise-based applications.
  • Revised Gauge Custom Control in C#Jun 10, 2005. This is an enhanced version of the custom guage. Enclosed are the source code for the control, and the test program.
  • Creating a Simple WebPart Page and Use WebServer Controls as WebPartsJan 10, 2006. Portal web sites such as MY MSN and MSN Spaces, often organize their data into discrete units that support a degree of personalization. Information is organized into standalone parts [WebParts], and users can rearrange those parts to suit their individual working styles. Here we will see how to add web parts to a web part page.
  • Testing project using NUnitJan 20, 2006. This article is for the begineers who wish to learn the basics of NUnit.
  • Agile Development Checklist Feb 20, 2006. The purpose of this article is to define a set of ideal practices for an agile software development project. The idea for this article came to me after discussing CMMI-type processes and realizing that there is no agile equivalent.
  • Automated Code Coverage and Unit TestsMar 08, 2006. A short tutorial that explains how to use a code coverage tool and how it can be integrated with unit tests to allow us to determine how well the unit tests exercise our application/classes. Code examples are written using C#.
  • A Practical Approach to .NET Testing using Visual Studio 2005 Test Team SuiteMar 22, 2006. This article will cover practical approach to White box Testing Techniques using Microsoft Visual Studio 2005 Test Team Suite. It covers concepts with a simple, easy to follow example.
  • Unit Tests in Visual Studio 2005Jun 01, 2006. Visual Studio 2005 comes with an integrated Test System, which allows developers to create Unit Test Project using IDE and write code to create unit tests and run them. This article explains how to get started with unit tests in Visual Studio 2005.
  • Illustrates the use of the lock in multithreading applicationAug 17, 2006. Any application must have one or more processes. A Process is structural unit with a memory block and using some set of resources. For each executable, the Windows operating system creates some isolated memory block. This article tries to explain the use of lock basics of Multithreading in C# .Net.
  • Aural Alert Generator (Voice and Tones)Aug 25, 2006. This article describes an application used to generate and test aural alerts; I wrote the application originally to allow me to define and test aural alerts for use in a couple of cockpit simulators, however, you could use the application to generate aural alerts for any purpose. The application also may be used to define voice messages which may be optionally saved as wave files for subsequent use in other applications.
  • C# .NET 2.0 Test Driven DevelopmentOct 09, 2006. This article will demonstrate test driven development by stepping through the test driven development cycle using a small sample project.
  • Distributed Transaction Coordinator/Control in asp.net (DTC)Jul 31, 2007. A transaction is a series of work perform as a single unit of work consistency and reliability of the system, can be achieved by binding a set of related operations together in a transaction. Here I will be discussing how we can run distributed application in a application.
  • Where Did All the Designers Go! Jan 24, 2008. Software is one of the fastest paced industries in the business world. As quickly as software languages come and go, skill sets require constant learning. In trying to keep up with implementation aspects of software, did we somehow forget about the priority of creating a good design? This article describes how we came about with a void of software design skills in the programming world.
  • XML Pathfinder - Sample C# Utility to Study XML Paths and XPath QueriesFeb 05, 2008. This article discusses the construction of a simple utility that may be used to locate and evaluate paths within an XML document, and to test queries against those paths.
  • Writing Better Code -- Keepin' it CohesiveFeb 15, 2008. One of the aspects of code quality we can look at is cohesion. If code is highly cohesive it is also much more testable, reusable, readable and maintainable (all the good things in life). Likewise, if code has a low level of cohesion it is often very hard to understand at a glance and difficult to test and maintain. In this article we'll take a look at a concrete example of code that does not follow the Single Responsibility Principle and as a result has low cohesion and walk through the refactoring it takes to modify the code to be more highly cohesive.
  • Building ASP.NET bot protection (CAPTCHA-like)Feb 29, 2008. This article shows how to build captcha-like protection from spam and other bots in ASP.NET.
  • Writing Better Code; Keeping it MaintainableMar 01, 2008. This article provides guidance for writing better, more maintainable code.
  • Writing Testable ObjectsApr 18, 2008. This article is an introduction to a simple pattern for building more testable classes.
  • Software Testing TechniquesJul 16, 2008. This article tells us that Testing should systematically uncover different classes of errors in a minimum amount of time and with a minimum amount of effort. Because of the fallibility of its human designers and its own abstract, complex nature, software development must be accompanied by quality assurance activities.
  • Introduction to Unit Testing Framework of VS 2008Aug 13, 2008. This article gives an introduction to in-built Unit Testing Framework of Visual Studio 2008.
  • Introduction to Unit Testing Framework of VS 2008: Part IIAug 14, 2008. This article gives an introduction to creation and configuration of Ordered Tests of VS 2008 Testing Framework.
  • Introduction to Unit Testing Framework of VS 2008 - Part IIIAug 19, 2008. This article gives an introduction to creation of Test List and configuration of Test Project of VS 2008 Testing Framework.
  • Introduction to Unit Testing Framework of VS 2008: Part IVAug 20, 2008. This article gives an introduction to Code Coverage in VS Team System 2008.
  • Test for User Group Membership in ASP.NET C#Oct 13, 2008. This article describes a simple approach to determining whether or not a logged in user is a member of a group within the context of an asp.net web based application.
  • Test for Desktop User Group Membership with C#Nov 10, 2008. This article describes a simple approach to determining whether or not a logged in user is a member of a group within the context of a desktop application. The approach shown relies upon the use of the user’s current Windows identity.
  • Unit Testing with VS 2008 Team editionFeb 15, 2009. Unit tests allows the developers and testers to check the logical errors in the methods of classes in C# and VB.NET Projects.Unit test can be created once and can be run every time that source code changes.Unit test cases make sure that no bugs are introduced when you write the new code.
  • Test-driven development approach in Microsoft.NET using NUnitFeb 19, 2009. This is the first article of series of articles related to Test-driven development (TDD) approach in Microsoft.NET. My intention is to illustrate this approach with several real-world examples, and this article is an introduction to the approach and the testing framework NUnit.
  • Continuous Integration with CruiseControl.netMar 07, 2009. Discusses the advantages of continuous integration going into some detail on automating unit tests and documentation. Includes example build files and configuration
  • Test-driven development approach for a class library in Microsoft.NETApr 09, 2009. This is the second article of series of articles related to Test-driven development (TDD) approach in Microsoft.NET. My intention is to illustrate this approach with several real-world examples. In this article, I will show how programmers can use the test-driven development approach to implement and test a class library.
  • Test-driven development approach for WCF Web servicesApr 11, 2009. In this article, I will show how programmers can use the test-driven development approach to implement and test Web service solutions.
  • Web Paging Navigation ControlMay 18, 2009. WebPagingControl navigation control contain page numbers ,next,back,first,last to navigate in datalist the project cotains web page to test the control working with ajax
  • 5 simple steps to execute unit testing using NUNIT Nov 22, 2009. Unit testing is validation and verification methodology where the developers test the individual units of source code. In this tutorial we will try to understand how we can do unit testing using NUNIT framework. This tutorial we will try to understand the 5 important steps to do unit testing using NUNIT.
  • 12 Important FAQ on VSTS TestingDec 06, 2009. This article has 12 important FAQ which covers unit testing, automated testing, data driven test, LOAD / performance test, code coverage, database testing and ordered testing.
  • The Contains Method and Hit Test in GDI+Jan 13, 2010. In this article I will explain about the Contains Method and Hit Test in GDI+.
  • Crystal Reports: 5 Tests for Top PerformanceFeb 10, 2010. In this article how to use Crystal Reports: 5 Tests for Top Performance.
  • Test-driven development approach for database applicationsMay 10, 2010. In this article, I will show how programmers can use the test-driven development approach to test enterprise solutions and its underlying data layer which should also support transactions in order to manage persistent data and leave the database systems in correct states.
  • Visual Studio 2010 Tools - To improve code qualityJun 21, 2010. In this article, I am going to present a step by step demo on how to improve code quality by using Visual Studio Tools.
  • Visual Studio 2010 - Data Driven Unit TestJun 23, 2010. Here I am going to demo data driven unit testing using a CSV file. Ultimately we are going to put test data into a CSV file and use that file data as an input for unit testing.
  • The '8 Commandments' for Choosing a Unit Testing SolutionJul 29, 2010. In this article you will learn how to use 8 Commandments for Choosing a Unit Testing Solution.
  • Creating a Custom Date Textbox User Control: Part 2Aug 16, 2010. In this part we're going to test our user control using the defined properties.
  • Checklist for Automating Software TestingAug 31, 2010. In this article you will learn how to use Checklist for automating software testing.
  • Introduction to Structure MapSep 01, 2010. This article provides a basic idea about structure map for Test Driven Development.
  • Walkthrough on reating WCF 4.0 Service and Hosting in IIS 7.5Sep 08, 2010. This article will give step by step walkthrough on how to create a basic WCF 4.0 Service, how to host WCF Service in IIS 7.5 and hot to test service in a client.
  • Unit testing with VSTSSep 20, 2010. Unit testing is validation and verification methodology where the developers test the individual units of source code. Some key points to remember are - A unit is the smallest part in the application which can be tested. So it can be a method, function or class.
  • Working and testing your project in Expression BlendSep 21, 2010. In this article I will explain about working and testing your project in Expression Blend
  • Software testing MethodologiesSep 21, 2010. Some commonly used software testing methodologies - Waterfall model, V model, Spiral model, Prototype model etc
  • Basics of Software TestingSep 21, 2010. Introduces the basics of Software Testing
  • Testing Techniques Sep 23, 2010. Software Testing Techniques is divide into 3 parts
  • Software Testing Life Cycle (STLC)Oct 11, 2010. In this Article we define the various stages of testing.
  • Testing DocumentsOct 18, 2010. In this article you will learn about Testing Documents.
  • Black box & White box testingOct 19, 2010. This article provides an insight to Black box & White box testing types.
  • Windows Azure - WCF in the Worker RoleOct 31, 2010. In this article I am going to demonstrate the creation of a WCF service in the Worker Role with deployment to the cloud and testing with a client.
  • Mocking in .NET with MoqNov 09, 2010. In this article, I will show how to use Moq as the mocking framework in testing environments to isolate dependencies between objects in .NET solutions.
  • Chapter 3: From 2003 to 2010: Debugging an ApplicationNov 24, 2010. After reading this chapter on debugging, you will be able to Use the new debugger features of Microsoft Visual Studio 2010. Create unit tests and execute them in Visual Studio 2010.Compare what was available to you or see what was different for you as a developer in Visual Studio 2003
  • Chapter 3: Data-Tier ApplicationsNov 30, 2010. With the release of Microsoft SQL Server 2008 R2, the SQL Server Manageability team addressed these struggles by introducing support for data-tier applications to help streamline the deployment, management, and upgrade of database applications. A data tier application, also referred to as a DAC, is a single unit of deployment that contains all the elements used by an application, such as the database application schema, instance level objects, associated database objects, files and scripts, and even a manifest defining the organization’s deployment requirements.
  • Model View Presenter Pattern Implementation in ASP.NETDec 08, 2010. In this tutorial, I will show you how to implement MVP in a web app as well as a windows app. Another important aspect of MVP patterns is to do unit tests of your whole interface as well as business layer.
  • Creating, Recording & Running Web Project using Visual Studio 2008 Team System Test EditionDec 20, 2010. This Article explains how to create a web test using VSTS 2008 test edition.
  • Introduction to Microsoft Visual Studio Team System 2008 Test EditionDec 21, 2010. This article discusses Microsoft Visual Studio Team System 2008 (Test Edition), an integrated development environment provided with Visual Studio and it's comparison and what’s new from Microsoft Visual Studio 2005.
  • Add Validation Rule in Visual Studio 2008 Team system test EditionDec 27, 2010. In this Article we are going to describe how to add validation rules to a Web test.
  • Important Points to Remember during Web TestingDec 29, 2010. This article discuss some important points that must be remembered during web testing.
  • Load Testing of Web Applications using Visual Studio Team System 2008Jan 03, 2011. This article discusses how a user can load test their web applications using the load testing features of Visual Studio Team System 2008.
  • Chapter 7: From 2005 to 2010: Debugging an ApplicationJan 19, 2011. After reading this chapter, you will be able to use the new debugger features of Microsoft Visual Studio 2010, create unit tests and execute them in Visual Studio 2010, compare what was available to you as a developer in Visual Studio 2005.
  • Testing WCF service using Test Client (wcftestclient.exe)Feb 14, 2011. A step by step process for using the wcfclient.exe tool.
  • Building a web based C# compiler using ASP.NET and TDDFeb 16, 2011. This tutorial is an introduction to Test Driven Development (TDD) in Visual Studio 2010 (VS2010) with C# 4 and ASP.NET 4. This will focus on as using the tool and coding as much as possible and not a great deal of words so enjoy the ride.
  • How to use NUnit and TDDFeb 28, 2011. Here you will learn about NUnit and TDD.
  • QC DATA PULLER using C#Mar 09, 2011. Generate a HTML web page as a report with a pie chart and tabular format of test execution from QC using C#.
  • TDD - Red Green Refactor ExampleApr 08, 2011. In this tutorial I would like to explain TDD (Test Driven Development) with the common Red Green Refactor example.
  • Testing Mobile Pages in Device EmulatorsApr 26, 2011. In this article we will see how to test mobile web pages in Device Emulators that are provided by default with Visual Studio.
  • System Development Life Cycle: Part 2Apr 28, 2011. Now let’s discuss System Development Life Cycle with its different Phases in detail,
  • TFS 2010 Scrum - Relation between PBIs, Tasks, Bugs and ImpedimentsMay 04, 2011. In Scrum, the product backlog is the list of requirements for the system. In this article we are going to see how the Product Backlog Items (PBIs), test case, tasks and bugs are linked.
  • Testing Website using SSL on Localhost (IIS)May 19, 2011. In this article you will learn how to test your website using SSL on your system (localhost).
  • SQL Azure - Testing Database Connectivity Using Azure PortalJun 14, 2011. In this article we can see how to test the connectivity level of the database created using the Azure Management portal.
  • Connect to Cloud Team Foundation Server using Visual Studio Test Manager 11 Developer StudioSep 19, 2011. In this article we are going to see the option of connecting to Cloud Team Foundation Server using the Visual Studio Test Manager 11 Developer Preview released with Visual Studio 11. The Visual Studio 11 Developer Preview is presently available as a free download for evaluation purpose and Test Manager is available built into the installation of the VS 11 Package.
  • Working With Functions in FSharpOct 11, 2011. Function in F#, groups code into a single unit and reduce the complexity of large code.
  • Working with Records in FSharpOct 17, 2011. Record is used to group different types of data into a single unit in a structural format. Here you will learn about Records in FSharp.
  • Understanding Unit and NUint TestingOct 25, 2011. A unit is a piece of code or usually method that invokes another piece of code and checks the correctness of some assumptions afterward? If the assumptions turn out to be wrong, the unit test has failed. A unit test is a method or function.
  • Windows Azure - WCF in Web RoleOct 29, 2011. In this article I am going to demonstrate the following Creation of a WCF service in Web Role Deployment to the cloud and testing with a client.

About Unit-Test

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks