forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFirefoxProfileManagerTest.cs
47 lines (41 loc) · 1.13 KB
/
FirefoxProfileManagerTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
namespace OpenQA.Selenium.Firefox
{
[TestFixture]
public class FirefoxProfileManagerTest
{
FirefoxProfileManager manager;
[SetUp]
public void SetUp()
{
manager = new FirefoxProfileManager();
}
[Test]
public void ShouldGetNamedProfile()
{
FirefoxProfile profile = manager.GetProfile("default");
Assert.IsNotNull(profile);
}
[Test]
public void ShouldReturnNullForInvalidProfileName()
{
FirefoxProfile profile = manager.GetProfile("ThisIsMyBogusProfileName");
Assert.IsNull(profile);
}
[Test]
public void ShouldReturnNullForNullProfileName()
{
FirefoxProfile profile = manager.GetProfile(null);
Assert.IsNull(profile);
}
[Test]
public void ShouldReturnNullForEmptyProfileName()
{
FirefoxProfile profile = manager.GetProfile(string.Empty);
Assert.IsNull(profile);
}
}
}