Initial import

This commit is contained in:
mlemanczyk committed 2012-09-24 20:55:07 +02:00
1 parent ea3f8549e4
commit fa6feafba7
133 files changed
+17503 -4

No files matched your search

@@ -0,0 +1,61 @@
/*
* Created by SharpDevelop.
* User: SG0894652
* Date: 8/10/2009
* Time: 11:21 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using NUnit.Framework;
using DelphiProjectHandler.LibraryPaths;
namespace DelphiProjectHandler.Tests.LibraryPaths
{
[TestFixture]
public class DelphiRegistryKeysTests
{
[Test]
public void LibraryKey()
{
Assert.IsNotNull(DelphiRegistryKeys.LibraryKey(LibraryPathType.Delphi5), "Delphi5 should be created");
Assert.IsNotNull(DelphiRegistryKeys.LibraryKey(LibraryPathType.Delphi6), "Delphi5 should be created");
}
[Test]
[ExpectedException(typeof(NotSupportedException))]
public void LibraryKey_NotSupported()
{
DelphiRegistryKeys.LibraryKey(LibraryPathType.Delphi2009);
}
[Test]
public void RootDirKey()
{
Assert.IsNotNull(DelphiRegistryKeys.RootDirKey(LibraryPathType.Delphi5), "Delphi5 should be created");
Assert.IsNotNull(DelphiRegistryKeys.RootDirKey(LibraryPathType.Delphi6), "Delphi5 should be created");
}
[Test]
[ExpectedException(typeof(NotSupportedException))]
public void RootDirKey_NotSupported()
{
DelphiRegistryKeys.RootDirKey(LibraryPathType.Delphi2009);
}
[Test]
public void EnvironmentPathsKey()
{
Assert.IsNotNull(DelphiRegistryKeys.EnvironmentPathsKey(LibraryPathType.Delphi6), "Delphi6 should be created");
}
[Test]
[ExpectedException(typeof(NotSupportedException))]
public void EnvironmentPathsKey_NotSupported()
{
DelphiRegistryKeys.EnvironmentPathsKey(LibraryPathType.Delphi5);
}
}
}