diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-31 09:16:24 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-31 09:16:24 -0800 |
commit | 4e798edfaf93990c79d35e9322efc0b9c0415f49 (patch) | |
tree | 6a736fadfe671ca9812033aa664d015a96e49993 /tools/NUnit/samples/csharp/failures | |
parent | 4185e8eb532939d1879dfd9e256db413c699f626 (diff) | |
download | DotNetOpenAuth-4e798edfaf93990c79d35e9322efc0b9c0415f49.zip DotNetOpenAuth-4e798edfaf93990c79d35e9322efc0b9c0415f49.tar.gz DotNetOpenAuth-4e798edfaf93990c79d35e9322efc0b9c0415f49.tar.bz2 |
Deleted NUnit samples that were irrelevant to the project.
Diffstat (limited to 'tools/NUnit/samples/csharp/failures')
4 files changed, 0 insertions, 174 deletions
diff --git a/tools/NUnit/samples/csharp/failures/AssemblyInfo.cs b/tools/NUnit/samples/csharp/failures/AssemblyInfo.cs deleted file mode 100644 index 67e65b0..0000000 --- a/tools/NUnit/samples/csharp/failures/AssemblyInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// -[assembly: AssemblyTitle("csharp.sample.dll")] -[assembly: AssemblyDescription("C# Sample Unit Tests")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("NUnit")] -[assembly: AssemblyProduct("NUnit")] -[assembly: AssemblyCopyright("Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. \nCopyright (C) 2000-2003 Philip Craig.\nAll Rights Reserved.")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("2.2.0.0")] - -// -// In order to sign your assembly you must specify a key to use. Refer to the -// Microsoft .NET Framework documentation for more information on assembly signing. -// -// Use the attributes below to control which key is used for signing. -// -// Notes: -// (*) If no key is specified, the assembly is not signed. -// (*) KeyName refers to a key that has been installed in the Crypto Service -// Provider (CSP) on your machine. KeyFile refers to a file which contains -// a key. -// (*) If the KeyFile and the KeyName values are both specified, the -// following processing occurs: -// (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key -// in the KeyFile is installed into the CSP and used. -// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. -// When specifying the KeyFile, the location of the KeyFile should be -// relative to the project output directory which is -// %Project Directory%\obj\<configuration>. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile -// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] -// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework -// documentation for more information on this. -// -[assembly: AssemblyDelaySign(false)] -[assembly: AssemblyKeyFile("")] -[assembly: AssemblyKeyName("")] diff --git a/tools/NUnit/samples/csharp/failures/CSharpTest.cs b/tools/NUnit/samples/csharp/failures/CSharpTest.cs deleted file mode 100644 index 0ab0fe6..0000000 --- a/tools/NUnit/samples/csharp/failures/CSharpTest.cs +++ /dev/null @@ -1,85 +0,0 @@ -// **************************************************************** -// This is free software licensed under the NUnit license. You -// may obtain a copy of the license as well as information regarding -// copyright ownership at http://nunit.org/?p=license&r=2.4. -// **************************************************************** - -namespace NUnit.Samples -{ - using System; - using NUnit.Framework; - - /// <summary>Some simple Tests.</summary> - /// - [TestFixture] - public class SimpleCSharpTest - { - /// <summary> - /// - /// </summary> - protected int fValue1; - /// <summary> - /// - /// </summary> - protected int fValue2; - - /// <summary> - /// - /// </summary> - [SetUp] public void Init() - { - fValue1= 2; - fValue2= 3; - } - - /// <summary> - /// - /// </summary> - /// - [Test] public void Add() - { - double result= fValue1 + fValue2; - // forced failure result == 5 - Assert.AreEqual(6, result, "Expected Failure."); - } - - /// <summary> - /// - /// </summary> - /// - [Test] public void DivideByZero() - { - int zero= 0; - int result= 8/zero; - } - - /// <summary> - /// - /// </summary> - /// - [Test] public void Equals() - { - Assert.AreEqual(12, 12, "Integer"); - Assert.AreEqual(12L, 12L, "Long"); - Assert.AreEqual('a', 'a', "Char"); - Assert.AreEqual((object)12, (object)12, "Integer Object Cast"); - - Assert.AreEqual(12, 13, "Expected Failure (Integer)"); - Assert.AreEqual(12.0, 11.99, 0.0, "Expected Failure (Double)."); - } - - [Test] - [ExpectedException(typeof(InvalidOperationException))] - public void ExpectAnException() - { - throw new InvalidCastException(); - } - - [Test] - [Ignore("ignored test")] - public void IgnoredTest() - { - throw new Exception(); - } - } -}
\ No newline at end of file diff --git a/tools/NUnit/samples/csharp/failures/cs-failures.build b/tools/NUnit/samples/csharp/failures/cs-failures.build deleted file mode 100644 index ea71419..0000000 --- a/tools/NUnit/samples/csharp/failures/cs-failures.build +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0"?> -<project name="cs-failures" default="build"> - - <include buildfile="../../samples.common"/> - - <patternset id="source-files"> - <include name="AssemblyInfo.cs" /> - <include name="CSharpTest.cs" /> - </patternset> - -</project>
\ No newline at end of file diff --git a/tools/NUnit/samples/csharp/failures/cs-failures.csproj b/tools/NUnit/samples/csharp/failures/cs-failures.csproj deleted file mode 100644 index e66e6d4..0000000 --- a/tools/NUnit/samples/csharp/failures/cs-failures.csproj +++ /dev/null @@ -1,20 +0,0 @@ -<VisualStudioProject> - <CSHARP ProjectType="Local" ProductVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="{15D66EEE-A852-4A52-89C2-83E74ECF3770}"> - <Build> - <Settings ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="cs-failures" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="Library" PreBuildEvent="" PostBuildEvent="" RootNamespace="csharp_sample" RunPostBuildEvent="OnBuildSuccess" StartupObject=""> - <Config Name="Debug" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="DEBUG;TRACE" DocumentationFile="" DebugSymbols="true" FileAlignment="4096" IncrementalBuild="true" NoStdLib="false" NoWarn="" Optimize="false" OutputPath="bin\Debug\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" /> - <Config Name="Release" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="false" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="true" OutputPath="bin\Release\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" /> - </Settings> - <References> - <Reference Name="System" AssemblyName="System" /> - <Reference Name="nunit.framework" AssemblyName="nunit.framework, Version=2.5, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" HintPath="..\..\..\bin\net-1.1\framework\nunit.framework.dll" /> - </References> - </Build> - <Files> - <Include> - <File RelPath="AssemblyInfo.cs" SubType="Code" BuildAction="Compile" /> - <File RelPath="CSharpTest.cs" SubType="Code" BuildAction="Compile" /> - </Include> - </Files> - </CSHARP> -</VisualStudioProject>
\ No newline at end of file |