mirror of
https://github.com/berkeleydb/libdb.git
synced 2024-11-16 09:06:25 +00:00
47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
/*-
|
|
* See the file LICENSE for redistribution information.
|
|
*
|
|
* Copyright (c) 2010, 2012 Oracle and/or its affiliates. All rights reserved.
|
|
*
|
|
*/
|
|
using System;
|
|
using NUnit.Framework;
|
|
using BerkeleyDB;
|
|
|
|
namespace CsharpAPITest
|
|
{
|
|
public class CSharpTestFixture
|
|
{
|
|
protected internal string testFixtureName;
|
|
protected internal string testFixtureHome;
|
|
protected internal string testName;
|
|
protected internal string testHome;
|
|
|
|
public virtual void SetUpTestfixture()
|
|
{
|
|
Console.WriteLine("---- TestClass Started: " + testFixtureName + ".cs ----");
|
|
testFixtureHome = "./TestOut/" + testFixtureName;
|
|
Configuration.ClearDir(testFixtureHome);
|
|
}
|
|
|
|
[TestFixtureTearDown]
|
|
public void TearDownTestfixture()
|
|
{
|
|
Console.WriteLine("---- TestClass Finished: " + testFixtureName + ".cs ----");
|
|
}
|
|
|
|
public void SetUpTest(bool clean)
|
|
{
|
|
Console.WriteLine(" ==== TestCase Started: " + testName + " ====");
|
|
testHome = testFixtureHome + "/" + testName;
|
|
if (clean == true)
|
|
Configuration.ClearDir(testHome);
|
|
}
|
|
|
|
[TearDown]
|
|
public void TearDownTest()
|
|
{
|
|
Console.WriteLine(" ==== TestCase Finished: " + testName + " ====");
|
|
}
|
|
}
|
|
}
|