Mercurial > repos > IBBoard.NUnit.Tests
changeset 4:efb6eef4a6ce
* Add unit tests for abstract equality test (currently fail to run because of bug 677228)
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 25 Apr 2011 14:51:00 +0000 |
parents | 1a4f10193bf5 |
children | bc9fcae7b577 |
files | AbstractEqualityTestTest.cs IBBoard.NUnit.Tests.csproj |
diffstat | 2 files changed, 35 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AbstractEqualityTestTest.cs Mon Apr 25 14:51:00 2011 +0000 @@ -0,0 +1,34 @@ +// This file (AbstractEqualityTestTest.cs) is a part of the IBBoard.NUnit.Tests project and is copyright 2011 IBBoard +// +// The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. +using System; +using NUnit.Framework; +using IBBoard.NUnit; + +namespace IBBoard.NUnit.Tests +{ + [TestFixture()] + public class AbstractEqualityTestTest : AbstractEqualityTest<string> + { + public override string GetObject() + { + return "object"; + } + + public override string GetSameObject() + { + return "object"; + } + + public override string GetDifferentObject() + { + return "different"; + } + + public string GetOtherDifferentString() + { + return "fibble"; + } + } +} +
--- a/IBBoard.NUnit.Tests.csproj Wed Jan 26 20:02:29 2011 +0000 +++ b/IBBoard.NUnit.Tests.csproj Mon Apr 25 14:51:00 2011 +0000 @@ -37,6 +37,7 @@ <Compile Include="AssemblyInfo.cs" /> <Compile Include="DoesTest.cs" /> <Compile Include="Constraints\ArrayContainsConstraintTest.cs" /> + <Compile Include="AbstractEqualityTestTest.cs" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ItemGroup>