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.
  • Control Statemenats - Part 1Jun 01, 2001. This lesson shows how to use c# control statements, and the difference between these controls in C++/ JAVA and c#. Sample includes single selection, if-else, and multi case ..
  • 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.
  • An insight into Code Reusability and COM Interoperability : Part IAug 28, 2001. Code reusability is the art of using existing code to achieve better productivity and ease of maintenance. The concept of reusability is not new. Its existence has been evident since the evolution of mankind.
  • 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.
  • Multi-threaded Web Applications - Case I: Search EngineMar 07, 2002. This article is the first of the series of 4. I will demonstrate the use of threading in web applications by implementing a simply search engine. The following 3 articles in the series will be a Port Scanner, a Reverse DNS and a Web Hammer respectively.
  • Multi-threaded Web Applications - Case II: Port ScannerMar 12, 2002. This article continues the 4-parts series of Multi-threaded Web Applications. In the first part, I have demonstrated how you can use multi-threading with ASP.NET to make a web based search engine more responsive, and to reduce the time required to compose the result. In this article, I will demonstrate how you can apply the same technique to a web based port scanner.
  • Tracking Time in a Window ApplicationApr 15, 2002. The program reads from an XML file to get the data about names and birth dates, so it is easy to add or remove names without changing the code in case my son decides the program should include his pet dog or turtle.
  • 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.
  • Case Study: Demo Networking Financial System May 23, 2002. In this tutorial I will discuss some of the design and development issues that one might consider when using .NET framework for developing Network affiliated applications.
  • Utilizing Assembly Information for Your Automated Splash DialogJun 05, 2002. There are cases when you need to reuse the same splash screen or about box in many applications.
  • 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.
  • Using Crystal Report ViewerJul 31, 2002. The following small application is designed to allow testing created reports with XML feeds used as data sources. .
  • Function to Change a Block of Text to Title CaseNov 20, 2002. Function to change a block of text to Title Case.
  • J2EE to .NET Migration: Quick TipsMar 26, 2003. Here are some Quick tips to get you started, in case you need to migrate a J2EE based application to a .NET based application.
  • C# Coding TechniquesSep 05, 2003. I wrote this article for novice programmers who needs to grasp the concepts of "What's C# code?" and "How we can write code?". To read this article you must have an overview of the .NET Framework and Visual Studio.NET (VS. NET).
  • Object Oriented: The Grownup Way to CodeSep 29, 2003. Back in my dark days of Procedural Programming, I remember someone giving me a problem, then banging out a few (hundred) lines of code, achieving my goal, and going on with my life. The next time a similar problem would arise, I’d rewrite, or in some cases, cut & paste my old code to achieve a similar, yet slightly different outcome.
  • 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.
  • 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.
  • Moving C Structures into .NET with Custom MarshalingDec 17, 2004. Microsoft provides several attributes for marshaling C to C#. In our example we will take the case where we have hundreds of structures and only a few API calls, so we only need to generate the marshaled code for the structures.
  • Data Access Layer to execute Stored ProceduresJan 18, 2005. This article explains about executing a single stored procedure or batch of stored procedures from the application layer. As Data access layer completely decoupled from Application layer we just need to change the Application layer in case of any change in underlying database schema.
  • 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.
  • 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.
  • Building Custom Paging Web FormAug 21, 2006. Sometimes we may need to build our own data objects instead of using DataSets & DataTables. But in this case, we will lose all paging and sorting facilities that is represented using DataSets & DataTables. To overcome this small issue we'll have to write our own custom paging feature as well as with sorting.
  • 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.
  • Leveraging the "using" keyword in C#Jan 17, 2007. The “using” keyword in C# is one of the best friends of programmers but many of us may not realize this. The “using” keyword is used in two cases – First when importing a namespace in your code and second in a code block.
  • Interoperability between WCF and Oracle Application Server : Part IJan 24, 2007. This article is part of series intended to show how to use Web Services related technologies to interoperate applications running in different platforms, in this case, the most common scenario between Microsoft.NET and Oracle AS platforms.
  • Enforce Text Case with Custom ControlsApr 02, 2007. This article shall describe the construction of three custom controls; each is used to format its text content to be either all upper case, all lower case, title case, or normal (as typed) case regardless of the format of the input.
  • Connection PoolingAug 11, 2007. While performing any database activity it is necessary that every single connection need to be closed, but in case your application throws some exception in that case our connection wont’ get closed. And you will get error “Cannot open connection, it is already open” In this article I will be discussing what is connection pooling? Why connection polling & how we can enable connection pooling etc.
  • 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.
  • XML in SQL Server Part 1Feb 27, 2008. This article gives you an overview of working with XML in SQL Server.
  • 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.
  • Configuration Sections; Introducing the Custom Configuration Section Concept: Part IApr 14, 2008. Custom sections of an ASP.NET Configuration File are customized sections that a developer configures by himself. In this case, the developer also sets their attributes and elements to suit special application needs in terms of settings.
  • Add and handle connection strings in an application configuration file: Part IApr 17, 2008. There are two ways to save data and parameters. In this case we save application parameters like information entered by the user during the installation process.
  • Writing Testable ObjectsApr 18, 2008. This article is an introduction to a simple pattern for building more testable classes.
  • Introduction to The Resources .resx and Resources Files: Part I May 05, 2008. In some cases an application needs some external resources to perform specified tasks. And I mean by external resources, those none executables data logically deployed with a given application.
  • Using Symmetric Algorithms to Encrypt DataMay 20, 2008. In this article, I will propose a method of how to encrypt data and store it using symmetric algorithms whose are, in fact, four integrated classes within the .Net framework, namely DES,RC2,Rijndael and TripleDES but I will perform the task using the two last ones as they are the mostly used in real time cases.
  • Using the default keyword in C#May 22, 2008. The keyword default plays several and important roles in the C# language, therefore, I will enumerate some cases where the default keyword is used.
  • Encrypt and Decrypt Sensitive Metadata Within Your Config file Jun 18, 2008. In a certain cases, metadata embedded within your configuration file is sensitive. In fact, imagine that you develop an application that uses a data base as data source; all information about this data base is located in the configuration file. What if a hacker success to log into your configuration files and obtains the connection string and other metadata about your data base??
  • 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.
  • UML Interview Questions Part 1Nov 09, 2008. In this section will be cover Use case digrams,Class digrams,Composite digrams,Sequence digrams,Object digrams
  • 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.
  • Visual C# IDE Tips: Part IINov 11, 2008. This post explains the some more tips on using Visual C# IDE to enhance developer productivity.
  • 6 basic steps of how to create a WebPart in SharePointJan 26, 2009. This is beginners tutorial of how to deploy a WebPart in SharePoint. It is a 6 step procedure and this tutorial will walk through the same. In case you are fresher to SharePoint you can read my FAQ articles listed below. I am sure within an hour you can get acquainted to SharePoint and get started.
  • 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.
  • How to Prepare Quotations (Project Estimates) Using Use Case Points May 17, 2009. Quotation (Project Estimation) is one of the important aspects of software cycles. Any prediction less or more will affect the project a lot. Let's look at how basically day to day businesses manage their ways of handling quotations.
  • 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
  • Search and selection of data using LINQMay 27, 2009. In this article I will explain how you can use LINQ, when we should search and select some data according to parameters, defined by users.
  • Windows Vista Security, Review of Data Execution Prevention Jun 03, 2009. Windows Vista introduces a range of new technologies that make the most secure desktop version of Windows to date. The following article provides an objective analysis of one of these improvements. Our goal is to help people better understand the true security climate that awaits them with Windows Vista, in this case with DEP (Data Execution Prevention).
  • Singleton Design Patterns in C#Jun 08, 2009. Whenever we want that a class has only one instance and it should have global point to access it but allowing the flexibility to create more objects if the situation changes,in that case we will use Singleton Design Pattern.
  • 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.
  • Data Persistence Navigation in Silverlight 3Dec 16, 2009. There are situations where you need to input some data as well as navigate to a specific page and come back to enter data again. In that case usually Silverlight doesn't persist data.
  • 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.
  • MVVM implementation for Windows formsMar 03, 2010. In this article we will see how to implement the MVVM for the case of the Windows Forms.
  • WPF and user interactivity Part V: Drag and Drop for WPFApr 28, 2010. In this article, I will show a very simple and basic drag and drop use case.
  • 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.
  • RelativeSources in WPFMay 11, 2010. In this article, I will expose the use cases of the RelativeSources in WPF.
  • 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.
  • Toying with the C# 4.0Sep 03, 2010. In this article, I will expose those two issues not thought the theorist manners but thought real cases via some implementation techniques.
  • Steps to make public site in Share pointSep 06, 2010. In Share point when dealing with internet site we should have some situations where we need to give access to some people who were not in our Active directory or Databases(In case of Forms Authentication).
  • 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
  • Basics of Software TestingSep 21, 2010. Introduces the basics of Software Testing
  • Software testing MethodologiesSep 21, 2010. Some commonly used software testing methodologies - Waterfall model, V model, Spiral model, Prototype model etc
  • 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.

About Test-Cases

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!
VSLive! Anaheim