1
// *********************************************************************
2
// Copyright 2007, Andreas Schlapsi
3
// This is free software licensed under the MIT license.
4
// *********************************************************************
7
using NUnitExtension.RowTest;
9
namespace NUnitExtension.RowTest.Tests
12
public class SetUpMethodsTestFixture
14
private bool testFixtureSetUpHasRun = false;
15
private bool setUpHasRun = false;
16
private string setUpByTestFixtureSetUp;
17
private string setUpByTestSetUp;
20
public void TestFixtureSetUp()
22
setUpByTestFixtureSetUp = "So Long,";
23
testFixtureSetUpHasRun = true;
29
setUpByTestSetUp = "and Thanks for All the Fish";
34
[Row("So Long,", "and Thanks for All the Fish")]
35
public void ClassMemberTest (string string1, string string2)
37
Assert.IsTrue(testFixtureSetUpHasRun);
38
Assert.IsTrue(setUpHasRun);
39
Assert.AreEqual(string1, setUpByTestFixtureSetUp);
40
Assert.AreEqual(string2, setUpByTestSetUp);
44
public void PrivateClassMemberTest()
46
Assert.AreEqual(setUpByTestFixtureSetUp, "So Long,");
47
Assert.AreEqual(setUpByTestSetUp, "and Thanks for All the Fish");