Fixed auth tests

This commit is contained in:
Mark McDowall 2013-05-21 21:06:25 -07:00
parent 34e35bd00b
commit f5a68782ce
3 changed files with 9 additions and 15 deletions

View file

@ -127,25 +127,19 @@ namespace NzbDrone.Common.Test
[Test]
public void GetAuthenticationType_No_Existing_Value()
{
var result = Subject.AuthenticationType;
result.Should().Be(AuthenticationType.Anonymous);
}
[Test]
public void GetAuthenticationType_Windows()
public void GetAuthenticationType_Basic()
{
Subject.SetValue("AuthenticationType", 1);
Subject.SetValue("AuthenticationType", AuthenticationType.Basic);
var result = Subject.AuthenticationType;
result.Should().Be(AuthenticationType.Windows);
result.Should().Be(AuthenticationType.Basic);
}
[Test]