[f-spot] Some initial nunit work.
- From: Stephen Shaw <sshaw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Some initial nunit work.
- Date: Wed, 30 Nov 2011 21:49:25 +0000 (UTC)
commit 675a2ac2873563969d4ca60adf9f8a11a155f661
Author: Stephen Shaw <sshaw decriptor com>
Date: Wed Nov 30 14:48:06 2011 -0700
Some initial nunit work.
This is more the initial stubbing out of
unit tests. I'm hoping to put some more
work into this. Probably should be in a
branch, but oh well.
.gitignore | 9 ++++
F-Spot.sln | 9 ++++
.../MainApp.UnitTest/FSpot/TestOf_AndTerm.cs | 35 ++++++++++++++
.../MainApp.UnitTest/MainApp.UnitTest.csproj | 50 ++++++++++++++++++++
4 files changed, 103 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 8aa763f..d168799 100644
--- a/.gitignore
+++ b/.gitignore
@@ -56,3 +56,12 @@ help/*/*.xml
/src/Core/FSpot.Gui/FSpot.Gui.dll.config
/src/Clients/MainApp/f-spot
/src/Clients/MainApp/f-spot.exe.config
+/src/Clients/MainApp.UnitTest/bin
+/lib/test-results/
+/src/Clients/MainApp/test-results/
+/src/Clients/test-results/
+/src/Core/FSpot.Query/test-results/
+/src/Core/FSpot.Utils/test-results/
+/src/Core/test-results/
+/test-results/
+/src/Clients/MainApp.UnitTest/test-results/
diff --git a/F-Spot.sln b/F-Spot.sln
index adb2727..1ec8823 100644
--- a/F-Spot.sln
+++ b/F-Spot.sln
@@ -37,6 +37,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Clients", "Clients", "{9D75
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MainApp", "src\Clients\MainApp\MainApp.csproj", "{27EC05FB-0223-4B26-8157-E49AF81D0007}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MainApp.UnitTest", "src\Clients\MainApp.UnitTest\MainApp.UnitTest.csproj", "{A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extensions", "Extensions", "{7D049DAA-F1B0-4697-9BCA-91FC0E1A2B9D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Editors", "Editors", "{416E19A2-9CD9-498F-BE75-20AB74535ACD}"
@@ -266,6 +268,12 @@ Global
{A19E926A-19C5-428B-8518-8CCC7B255C42}.Release|Any CPU.Build.0 = Release|Any CPU
{A19E926A-19C5-428B-8518-8CCC7B255C42}.Submodule|Any CPU.ActiveCfg = Debug|Any CPU
{A19E926A-19C5-428B-8518-8CCC7B255C42}.Submodule|Any CPU.Build.0 = Debug|Any CPU
+ {A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4}.Submodule|Any CPU.ActiveCfg = Debug|Any CPU
+ {A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4}.Submodule|Any CPU.Build.0 = Debug|Any CPU
{B5CDF05C-278A-40AA-A587-B27A00BD9135}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5CDF05C-278A-40AA-A587-B27A00BD9135}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5CDF05C-278A-40AA-A587-B27A00BD9135}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -349,6 +357,7 @@ Global
{FFC3D9B1-B19A-44D8-8AA2-96DDE911320E} = {6369E0D4-0A68-4D4E-A6A0-EF2EA793002F}
{B5CDF05C-278A-40AA-A587-B27A00BD9135} = {6369E0D4-0A68-4D4E-A6A0-EF2EA793002F}
{27EC05FB-0223-4B26-8157-E49AF81D0007} = {9D75644A-DEF1-4362-8553-4B5F09783DC9}
+ {A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4} = {9D75644A-DEF1-4362-8553-4B5F09783DC9}
{416E19A2-9CD9-498F-BE75-20AB74535ACD} = {7D049DAA-F1B0-4697-9BCA-91FC0E1A2B9D}
{E9BCB7B9-3D8C-4C5C-B6FA-0BBAC6611106} = {7D049DAA-F1B0-4697-9BCA-91FC0E1A2B9D}
{78EC5D8B-299B-4724-844D-6F3A8E8D1536} = {7D049DAA-F1B0-4697-9BCA-91FC0E1A2B9D}
diff --git a/src/Clients/MainApp.UnitTest/FSpot/TestOf_AndTerm.cs b/src/Clients/MainApp.UnitTest/FSpot/TestOf_AndTerm.cs
new file mode 100644
index 0000000..ffb9770
--- /dev/null
+++ b/src/Clients/MainApp.UnitTest/FSpot/TestOf_AndTerm.cs
@@ -0,0 +1,35 @@
+// TestOf_AndTerm.cs
+// Author:
+// Stephen Shaw <sshaw decriptor com>
+// Copyright (c) 2011 sshaw
+using System;
+using NUnit.Framework;
+using FSpot;
+
+namespace FSpot
+{
+ [TestFixture]
+ public class TestOf_AndTerm
+ {
+ //private AndTerm andTerm = null;
+ private AndTerm andTerm = null;
+
+ [TestFixtureSetUp]
+ public void TestFixtureSetUp ()
+ {
+ andTerm = new AndTerm (null, null);
+ }
+
+ [TestFixtureTearDown]
+ public void TestFixtureTearDown()
+ {
+ andTerm = null;
+ }
+
+ [Test]
+ public void TestCase ()
+ {
+ Assert.AreEqual(0, 0);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/Clients/MainApp.UnitTest/MainApp.UnitTest.csproj b/src/Clients/MainApp.UnitTest/MainApp.UnitTest.csproj
new file mode 100644
index 0000000..5d7f2d7
--- /dev/null
+++ b/src/Clients/MainApp.UnitTest/MainApp.UnitTest.csproj
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>MainApp.UnitTest</RootNamespace>
+ <AssemblyName>MainApp.UnitTest</AssemblyName>
+ <ReleaseVersion>0.9.0</ReleaseVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>none</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="nunit.core, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" />
+ <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="FSpot\TestOf_AndTerm.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <ItemGroup>
+ <Folder Include="FSpot\" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\MainApp\MainApp.csproj">
+ <Project>{27EC05FB-0223-4B26-8157-E49AF81D0007}</Project>
+ <Name>MainApp</Name>
+ </ProjectReference>
+ </ItemGroup>
+</Project>
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]