Permalink
Browse files

The start of Unit tests

  • Loading branch information...
1 parent 0626d10 commit c2158421451e336449c0b54ca693e6df2465c5ac @trepidity committed Mar 25, 2012
Showing with 20 additions and 0 deletions.
  1. +3 −0 Tomboy-library/Tomboy-library.csproj
  2. +17 −0 Tomboy-library/tests/StorageTests.cs
@@ -34,16 +34,19 @@
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Reference Include="System.Xml" />
+ <Reference Include="nunit.framework" />
</ItemGroup>
<ItemGroup>
<Folder Include="Tomboy\" />
<Folder Include="Tomboy\Storage\" />
+ <Folder Include="tests\" />
</ItemGroup>
<ItemGroup>
<Compile Include="Tomboy\Note.cs" />
<Compile Include="Tomboy\Tag.cs" />
<Compile Include="Tomboy\Engine.cs" />
<Compile Include="Tomboy\Storage\IStorage.cs" />
<Compile Include="Tomboy\Storage\DiskStorage.cs" />
+ <Compile Include="tests\StorageTests.cs" />
</ItemGroup>
</Project>
@@ -0,0 +1,17 @@
+using System;
+using NUnit.Framework;
+
+namespace Tomboy
+{
+ [TestFixture()]
+ public class StorageTests
+ {
+ [Test()]
+ public void TestCase ()
+ {
+
+ Console.WriteLine (DiskStorage.Read ("/Users/jjennings/Library/Application Support/Tomboy/d8903a05-40ba-4a77-a408-bbb50d76b837.note", "tomboy://d8903a05-40ba-4a77-a408-bbb50d76b837").Title);
+ }
+ }
+}
+

0 comments on commit c215842

Please sign in to comment.