using Service.Provider;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests {
///
///This is a test class for HeuristicLabRoleProviderTest and is intended
///to contain all HeuristicLabRoleProviderTest Unit Tests
///
[TestClass()]
public class HeuristicLabRoleProviderTest : AbstractHeuristicLabTest {
private TestContext testContextInstance;
///
///Gets or sets the test context which provides
///information about and functionality for the current test run.
///
public TestContext TestContext {
get {
return testContextInstance;
}
set {
testContextInstance = value;
}
}
#region Additional test attributes
//
//You can use the following additional attributes as you write your tests:
//
//Use ClassInitialize to run code before running the first test in the class
//[ClassInitialize()]
//public static void MyClassInitialize(TestContext testContext)
//{
//}
//
//Use ClassCleanup to run code after all tests in a class have run
//[ClassCleanup()]
//public static void MyClassCleanup()
//{
//}
//
//Use TestInitialize to run code before running each test
//[TestInitialize()]
//public void MyTestInitialize()
//{
//}
//
//Use TestCleanup to run code after each test has run
//[TestCleanup()]
//public void MyTestCleanup()
//{
//}
//
#endregion
///
///A test for ApplicationName
///
[TestMethod()]
public void ApplicationNameTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string expected = string.Empty; // TODO: Initialize to an appropriate value
string actual;
target.ApplicationName = expected;
actual = target.ApplicationName;
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
///
///A test for RoleExists
///
[TestMethod()]
public void RoleExistsTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string roleName = string.Empty; // TODO: Initialize to an appropriate value
bool expected = false; // TODO: Initialize to an appropriate value
bool actual;
actual = target.RoleExists(roleName);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
///
///A test for RemoveUsersFromRoles
///
[TestMethod()]
public void RemoveUsersFromRolesTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string[] usernames = null; // TODO: Initialize to an appropriate value
string[] roleNames = null; // TODO: Initialize to an appropriate value
target.RemoveUsersFromRoles(usernames, roleNames);
Assert.Inconclusive("A method that does not return a value cannot be verified.");
}
///
///A test for IsUserInRole
///
[TestMethod()]
public void IsUserInRoleTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string username = string.Empty; // TODO: Initialize to an appropriate value
string roleName = string.Empty; // TODO: Initialize to an appropriate value
bool expected = false; // TODO: Initialize to an appropriate value
bool actual;
actual = target.IsUserInRole(username, roleName);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
///
///A test for GetUsersInRole
///
[TestMethod()]
public void GetUsersInRoleTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string roleName = string.Empty; // TODO: Initialize to an appropriate value
string[] expected = null; // TODO: Initialize to an appropriate value
string[] actual;
actual = target.GetUsersInRole(roleName);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
///
///A test for GetRolesForUser
///
[TestMethod()]
public void GetRolesForUserTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string username = string.Empty; // TODO: Initialize to an appropriate value
string[] expected = null; // TODO: Initialize to an appropriate value
string[] actual;
actual = target.GetRolesForUser(username);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
///
///A test for GetAllRoles
///
[TestMethod()]
public void GetAllRolesTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string[] expected = null; // TODO: Initialize to an appropriate value
string[] actual;
actual = target.GetAllRoles();
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
///
///A test for FindUsersInRole
///
[TestMethod()]
public void FindUsersInRoleTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string roleName = string.Empty; // TODO: Initialize to an appropriate value
string usernameToMatch = string.Empty; // TODO: Initialize to an appropriate value
string[] expected = null; // TODO: Initialize to an appropriate value
string[] actual;
actual = target.FindUsersInRole(roleName, usernameToMatch);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
///
///A test for DeleteRole
///
[TestMethod()]
public void DeleteRoleTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string roleName = string.Empty; // TODO: Initialize to an appropriate value
bool throwOnPopulatedRole = false; // TODO: Initialize to an appropriate value
bool expected = false; // TODO: Initialize to an appropriate value
bool actual;
actual = target.DeleteRole(roleName, throwOnPopulatedRole);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
///
///A test for CreateRole
///
[TestMethod()]
public void CreateRoleTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string roleName = string.Empty; // TODO: Initialize to an appropriate value
target.CreateRole(roleName);
Assert.Inconclusive("A method that does not return a value cannot be verified.");
}
///
///A test for AddUsersToRoles
///
[TestMethod()]
public void AddUsersToRolesTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
string[] usernames = null; // TODO: Initialize to an appropriate value
string[] roleNames = null; // TODO: Initialize to an appropriate value
target.AddUsersToRoles(usernames, roleNames);
Assert.Inconclusive("A method that does not return a value cannot be verified.");
}
///
///A test for HeuristicLabRoleProvider Constructor
///
[TestMethod()]
public void HeuristicLabRoleProviderConstructorTest() {
HeuristicLabRoleProvider target = new HeuristicLabRoleProvider();
Assert.Inconclusive("TODO: Implement code to verify target");
}
}
}