public void Valid_ShouldReturnTrue_WhenStandardDomainUserName() { const string userName = @"DOMAIN\user.name"; var formatter = new StandardDomainUserNameFormatter(); var valid = formatter.Valid(userName); Assert.True(valid); }
public void ToDisplayName_ShouldReturnGivenUserName_WhenNonStandardDomainUserName() { const string userName = @"DOMAIN\uname1"; var formatter = new StandardDomainUserNameFormatter(); var displayName = formatter.ToDisplayName(userName); Assert.Equal(@"DOMAIN\uname1", displayName); }