diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2014-02-20 03:08:16 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2014-02-20 03:56:56 +0400 |
commit | c23cf96380ca4a9b74f38a627c53f629c6070257 (patch) | |
tree | 050499751f599dfeb29f86450beca15d8d88788e /main/tests/UserInterfaceTests/UITestBase.cs | |
parent | a4a298ed78665552c83526b910320880956688e9 (diff) |
Rebase UI test system onto NUnit
Diffstat (limited to 'main/tests/UserInterfaceTests/UITestBase.cs')
-rw-r--r-- | main/tests/UserInterfaceTests/UITestBase.cs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/main/tests/UserInterfaceTests/UITestBase.cs b/main/tests/UserInterfaceTests/UITestBase.cs new file mode 100644 index 0000000000..5aefb49e6a --- /dev/null +++ b/main/tests/UserInterfaceTests/UITestBase.cs @@ -0,0 +1,53 @@ +// +// UserInterfaceTest.cs +// +// Author: +// Michael Hutchinson <m.j.hutchinson@gmail.com> +// +// Copyright (c) 2014 Xamarin Inc. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +using NUnit.Framework; +using MonoDevelop.Components.AutoTest; + +namespace UserInterfaceTests +{ + [TestFixture] + public abstract class UITestBase + { + public AutoTestClientSession Session { + get { return TestService.Session; } + } + + [SetUp] + public virtual void SetUp () + { + Util.ClearTmpDir (); + + TestService.StartSession (); + } + + [TearDown] + public virtual void Teardown () + { + TestService.EndSession (); + } + } +} |