Click here to Skip to main content
15,886,199 members
Articles / Programming Languages / Visual Basic

CuttingEdge.Conditions

Rate me:
Please Sign up or sign in to vote.
4.59/5 (19 votes)
23 Jun 2011MIT3 min read 125K   67   84  
A pre- and postcondition validation framework based on .NET 3.5 extension methods
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{5E3699BE-95DA-439D-BDFD-63DC76F56A3A}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>CuttingEdge.Conditions.UnitTests</RootNamespace>
    <AssemblyName>CuttingEdge.Conditions.UnitTests</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
    <SccProjectName>SAK</SccProjectName>
    <SccLocalPath>SAK</SccLocalPath>
    <SccAuxPath>SAK</SccAuxPath>
    <SccProvider>SAK</SccProvider>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <WarningsAsErrors>108, 114, 162, 168, 169, 219, 472, 649, 665</WarningsAsErrors>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
    <Reference Include="System" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data" />
    <Reference Include="System.XML" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="CollectionTests\CollectionContainsAllTests.cs" />
    <Compile Include="CollectionTests\CollectionContainsAnyTests.cs" />
    <Compile Include="CollectionTests\CollectionContainsTests.cs" />
    <Compile Include="CollectionTests\CollectionDoesNotContainAllTests.cs" />
    <Compile Include="CollectionTests\CollectionDoesNotContainAnyTests.cs" />
    <Compile Include="CollectionTests\CollectionDoesNotContainTests.cs" />
    <Compile Include="CollectionTests\CollectionDoesNotHaveLengthTests.cs" />
    <Compile Include="CollectionTests\CollectionHasLengthTests.cs" />
    <Compile Include="CollectionTests\CollectionIsEmptyTests.cs" />
    <Compile Include="CollectionTests\CollectionIsLongerOrEqualTests.cs" />
    <Compile Include="CollectionTests\CollectionIsLongerThanTests.cs" />
    <Compile Include="CollectionTests\CollectionIsNotEmptyTests.cs" />
    <Compile Include="CollectionTests\CollectionIsNotLongerOrEqualTests.cs" />
    <Compile Include="CollectionTests\CollectionIsNotLongerThanTests.cs" />
    <Compile Include="CollectionTests\CollectionIsNotShorterOrEqualTests.cs" />
    <Compile Include="CollectionTests\CollectionIsNotShorterThanTests.cs" />
    <Compile Include="CollectionTests\CollectionIsShorterOrEqualTests.cs" />
    <Compile Include="CollectionTests\CollectionIsShorterThanTests.cs" />
    <Compile Include="CollectionTests\EmptyTestEnumerable.cs" />
    <Compile Include="CollectionTests\NonEmptyTestEnumerable.cs" />
    <Compile Include="CollectionTests\OddEqualityComparer.cs" />
    <Compile Include="EntryPointTests\EntryPointEnsuresTests.cs" />
    <Compile Include="EntryPointTests\EntryPointRequiresTests.cs" />
    <Compile Include="ExtendabilityExtensions.cs" />
    <Compile Include="ExtendabilityTests.cs" />
    <Compile Include="NullTests\NullIsNotNullTests.cs" />
    <Compile Include="NullTests\NullIsNullTests.cs" />
    <Compile Include="NumericTests\NumericTests.Double.cs" />
    <Compile Include="NumericTests\NumericTests.Single.cs" />
    <Compile Include="PostConditionExceptionTests.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="StringResourcesTests.cs" />
    <Compile Include="StringTests\StringContainsTests.cs" />
    <Compile Include="StringTests\StringDoesNotContainTests.cs" />
    <Compile Include="StringTests\StringDoesNotEndWithTests.cs" />
    <Compile Include="StringTests\StringDoesNotHaveLengthTests.cs" />
    <Compile Include="StringTests\StringDoesNotStartWithTests.cs" />
    <Compile Include="StringTests\StringEndsWithTests.cs" />
    <Compile Include="StringTests\StringHasLengthTests.cs" />
    <Compile Include="StringTests\StringIsEmptyTests.cs" />
    <Compile Include="StringTests\StringIsLongerThanTests.cs" />
    <Compile Include="StringTests\StringIsNotEmptyTests.cs" />
    <Compile Include="StringTests\StringIsNotNullOrEmptyTests.cs" />
    <Compile Include="StringTests\StringIsNullOrEmptyTests.cs" />
    <Compile Include="StringTests\StringIsShorterOrEqualTests.cs" />
    <Compile Include="StringTests\StringIsLongerOrEqualTests.cs" />
    <Compile Include="StringTests\StringIsShorterThanTests.cs" />
    <Compile Include="StringTests\StringStartsWithTests.cs" />
    <Compile Include="TestHelper.cs" />
    <Compile Include="TypeTests\TypeIsNotOfTypeTests.cs" />
    <Compile Include="TypeTests\TypeIsOfTypeTests.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.Boolean.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.Byte.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.DateTime.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.Decimal.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.Double.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.Int16.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.Int32.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.Int64.cs" />
    <Compile Include="CompareTests\ValidatorExtensionTests.Compare.Single.cs" />
    <Compile Include="EvaluationTests\EvaluationEvaluateTests.cs" />
    <Compile Include="SelfTests.cs" />
    <None Include="App.config" />
    <None Include="CompareTests\ValidatorExtensionTests.Compare.Base.cs" />
    <Compile Include="UnitTestTraceListener.cs" />
    <Compile Include="UseCases\NullTestUseCases.cs" />
    <Compile Include="UseCases\TypeTestUseCases.cs" />
    <Compile Include="UseCases\UseCaseTestHelper.cs" />
    <Compile Include="ConditionValidatorTests.cs" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\CuttingEdge.Conditions\CuttingEdge.Conditions.csproj">
      <Project>{914B3EA8-2D78-4B1D-BA98-575817EB20F6}</Project>
      <Name>CuttingEdge.Conditions</Name>
    </ProjectReference>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

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 MIT License


Written By
Software Developer (Senior)
Netherlands Netherlands
I'm a freelance developer from the Netherlands, working with .NET technology on a daily basis, and officially diagnosed as a workaholic.

Comments and Discussions