From 6c5a139a7baa5acb4d9f0f9de8ae4c50799f9839 Mon Sep 17 00:00:00 2001 From: pkanavos Date: Tue, 10 Apr 2012 08:48:14 +0300 Subject: [PATCH] v. 0.7.20410 --- trunk/Pithos.Client.WPF/Properties/AssemblyInfo.cs | 6 +- trunk/Pithos.Core.Test/CollectionExtensionsTest.cs | 67 +++++++++++++++ trunk/Pithos.Installer/rnotes.0.7.20410.html | 12 +++ trunk/Pithos.Installer/versioninfo.xml | 16 +++- .../PermissionConverterTEst.cs | 85 ++++++++++++++++++++ .../Pithos.Interfaces.Test.csproj | 67 +++++++++++++++ .../Properties/AssemblyInfo.cs | 36 +++++++++ 7 files changed, 284 insertions(+), 5 deletions(-) create mode 100644 trunk/Pithos.Core.Test/CollectionExtensionsTest.cs create mode 100644 trunk/Pithos.Installer/rnotes.0.7.20410.html create mode 100644 trunk/Pithos.Interfaces.Test/PermissionConverterTEst.cs create mode 100644 trunk/Pithos.Interfaces.Test/Pithos.Interfaces.Test.csproj create mode 100644 trunk/Pithos.Interfaces.Test/Properties/AssemblyInfo.cs diff --git a/trunk/Pithos.Client.WPF/Properties/AssemblyInfo.cs b/trunk/Pithos.Client.WPF/Properties/AssemblyInfo.cs index 7dff65c..abe18fd 100644 --- a/trunk/Pithos.Client.WPF/Properties/AssemblyInfo.cs +++ b/trunk/Pithos.Client.WPF/Properties/AssemblyInfo.cs @@ -56,7 +56,7 @@ using System.Windows; [assembly: AssemblyCopyright("Copyright © GRNet 2011-2012")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -[assembly: AssemblyInformationalVersion("2012-04-09")] +[assembly: AssemblyInformationalVersion("2012-04-10")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from @@ -93,5 +93,5 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.7.20409.0")] -[assembly: AssemblyFileVersionAttribute("0.7.20409.0")] +[assembly: AssemblyVersion("0.7.20410.0")] +[assembly: AssemblyFileVersionAttribute("0.7.20410.0")] diff --git a/trunk/Pithos.Core.Test/CollectionExtensionsTest.cs b/trunk/Pithos.Core.Test/CollectionExtensionsTest.cs new file mode 100644 index 0000000..0ef455b --- /dev/null +++ b/trunk/Pithos.Core.Test/CollectionExtensionsTest.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using NUnit.Framework; +using Pithos.Core.Agents; + +namespace Pithos.Core.Test +{ + [TestFixture] + class CollectionExtensionsTest + { + [Test] + public void TestUriIsFileDirectlyBelow() + { + var target= new Uri("https://okeanos/pithos/vi/account1/pithos/file1.xml"); + var rootUri = new Uri("https://okeanos/pithos/vi/account1/pithos"); + + Assert.That(target.IsAtOrBelow(rootUri),Is.True); + } + + [Test] + public void TestUriIsAbove() + { + var target = new Uri("https://okeanos/pithos/vi/account1/pithos"); + var rootUri = new Uri("https://okeanos/pithos/vi/account1/pithos/folder"); + + Assert.That(target.IsAtOrBelow(rootUri),Is.False); + } + + [Test] + public void TestUriIsSameFolde() + { + var target= new Uri("https://okeanos/pithos/vi/account1/pithos/folder"); + var rootUri = new Uri("https://okeanos/pithos/vi/account1/pithos/folder"); + + Assert.That(target.IsAtOrBelow(rootUri),Is.True); + } + + [Test] + public void TestStringIsFileDirectlyBelow() + { + var target= @"c:\okeanos\pithos\vi\account1\pithos\file1.xml"; + var root = @"c:\okeanos\pithos\vi\account1\pithos"; + + Assert.That(target.IsAtOrBelow(root),Is.True); + } + + [Test] + public void TestStringIsAbove() + { + var target = @"c:\okeanos\pithos\vi\account1\pithos"; + var root = @"c:\okeanos\pithos\vi\account1\pithos\folder"; + + Assert.That(target.IsAtOrBelow(root),Is.False); + } + + [Test] + public void TestStringIsSameFolder() + { + var target = @"c:\okeanos\pithos\vi\account1\pithos\folder"; + var root = @"c:\okeanos\pithos\vi\account1\pithos\folder"; + + Assert.That(target.IsAtOrBelow(root),Is.True); + } + } +} diff --git a/trunk/Pithos.Installer/rnotes.0.7.20410.html b/trunk/Pithos.Installer/rnotes.0.7.20410.html new file mode 100644 index 0000000..9253963 --- /dev/null +++ b/trunk/Pithos.Installer/rnotes.0.7.20410.html @@ -0,0 +1,12 @@ + + +

Pithos MS Client v. 0.7.20410

+Release Date: Apr 10, 2012, 09:00 +
+Includes: +
+ + + \ No newline at end of file diff --git a/trunk/Pithos.Installer/versioninfo.xml b/trunk/Pithos.Installer/versioninfo.xml index e08b253..231f029 100644 --- a/trunk/Pithos.Installer/versioninfo.xml +++ b/trunk/Pithos.Installer/versioninfo.xml @@ -5,9 +5,21 @@ Pithos MS Client https://code.grnet.gr/projects/pithos-ms-client/repository/revisions/master/changes/trunk/Pithos.Installer/versioninfo.xml - en + en + - Version 0.7.20403 + Version 0.7.20410 + https://code.grnet.gr/projects/pithos-ms-client/repository/revisions/master/raw/trunk/Pithos.Installer/rnotes.0.7.20410.html + Mon, 10 Apr 2012 09:00:00 +0200 + + + + Version 0.7.20409 https://code.grnet.gr/projects/pithos-ms-client/repository/revisions/master/raw/trunk/Pithos.Installer/rnotes.0.7.20409.html Mon, 09 Apr 2012 09:00:00 +0200 + + + Debug + AnyCPU + 8.0.30703 + 2.0 + {881F7260-CA40-40FD-AEEC-860B346DC2DC} + Library + Properties + Pithos.Interfaces.Test + Pithos.Interfaces.Test + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\NUnit.2.5.10.11092\lib\nunit.framework.dll + + + + + + + + + + + + + + + + {A9AE40FF-1A21-414A-9FE7-3BE13644CC6D} + Newtonsoft.Json + + + {7EEFF32F-CCF8-436A-9E0B-F40434C09AF4} + Pithos.Interfaces + + + + + \ No newline at end of file diff --git a/trunk/Pithos.Interfaces.Test/Properties/AssemblyInfo.cs b/trunk/Pithos.Interfaces.Test/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..60aba5b --- /dev/null +++ b/trunk/Pithos.Interfaces.Test/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 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("Pithos.Interfaces.Test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("HP")] +[assembly: AssemblyProduct("Pithos.Interfaces.Test")] +[assembly: AssemblyCopyright("Copyright © HP 2012")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9269d61d-a427-4c00-864e-f73886584a6e")] + +// 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 Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] -- 1.7.10.4