Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/25/10 16:30:24 (14 years ago)
Author:
hmayr
Message:

following changes (#1046):

  • extended HeuristicLabUser.cs (additional methods)
  • implemented a 2. demo method for HeuristicLabMembershipProvider.cs
  • recreated two test classes in English language
Location:
branches/HeuristicLab.Services.Authentication Prototype/UnitTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Services.Authentication Prototype/UnitTests/HeuristicLabMembershipProviderTest.cs

    r3943 r3948  
    55namespace UnitTests {
    66  /// <summary>
    7   ///Dies ist eine Testklasse für "HeuristicLabMembershipProviderTest" und soll
    8   ///alle HeuristicLabMembershipProviderTest Komponententests enthalten.
     7  ///This is a test class for HeuristicLabMembershipProviderTest and is intended
     8  ///to contain all HeuristicLabMembershipProviderTest Unit Tests
    99  ///</summary>
    1010  [TestClass()]
     
    1313
    1414    /// <summary>
    15     ///Ruft den Testkontext auf, der Informationen
    16     ///über und Funktionalität für den aktuellen Testlauf bietet, oder legt diesen fest.
     15    ///Gets or sets the test context which provides
     16    ///information about and functionality for the current test run.
    1717    ///</summary>
    1818    public TestContext TestContext {
     
    2525    }
    2626
    27     #region Zusätzliche Testattribute
     27    #region Additional test attributes
    2828    //
    29     //Sie können beim Verfassen Ihrer Tests die folgenden zusätzlichen Attribute verwenden:
     29    //You can use the following additional attributes as you write your tests:
    3030    //
    31     //Mit ClassInitialize führen Sie Code aus, bevor Sie den ersten Test in der Klasse ausführen.
     31    //Use ClassInitialize to run code before running the first test in the class
    3232    //[ClassInitialize()]
    3333    //public static void MyClassInitialize(TestContext testContext)
     
    3535    //}
    3636    //
    37     //Mit ClassCleanup führen Sie Code aus, nachdem alle Tests in einer Klasse ausgeführt wurden.
     37    //Use ClassCleanup to run code after all tests in a class have run
    3838    //[ClassCleanup()]
    3939    //public static void MyClassCleanup()
     
    4141    //}
    4242    //
    43     //Mit TestInitialize können Sie vor jedem einzelnen Test Code ausführen.
     43    //Use TestInitialize to run code before running each test
    4444    //[TestInitialize()]
    4545    //public void MyTestInitialize()
     
    4747    //}
    4848    //
    49     //Mit TestCleanup können Sie nach jedem einzelnen Test Code ausführen.
     49    //Use TestCleanup to run code after each test has run
    5050    //[TestCleanup()]
    5151    //public void MyTestCleanup()
     
    5555    #endregion
    5656
    57     /// <summary>
    58     ///Ein Test für "RequiresUniqueEmail"
     57
     58    /// <summary>
     59    ///A test for RequiresUniqueEmail
    5960    ///</summary>
    6061    [TestMethod()]
    6162    public void RequiresUniqueEmailTest() {
    62       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     63      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    6364      bool actual;
    6465      actual = target.RequiresUniqueEmail;
    65       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    66     }
    67 
    68     /// <summary>
    69     ///Ein Test für "RequiresQuestionAndAnswer"
     66      Assert.Inconclusive("Verify the correctness of this test method.");
     67    }
     68
     69    /// <summary>
     70    ///A test for RequiresQuestionAndAnswer
    7071    ///</summary>
    7172    [TestMethod()]
    7273    public void RequiresQuestionAndAnswerTest() {
    73       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     74      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    7475      bool actual;
    7576      actual = target.RequiresQuestionAndAnswer;
    76       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    77     }
    78 
    79     /// <summary>
    80     ///Ein Test für "PasswordStrengthRegularExpression"
     77      Assert.Inconclusive("Verify the correctness of this test method.");
     78    }
     79
     80    /// <summary>
     81    ///A test for PasswordStrengthRegularExpression
    8182    ///</summary>
    8283    [TestMethod()]
    8384    public void PasswordStrengthRegularExpressionTest() {
    84       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     85      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    8586      string actual;
    8687      actual = target.PasswordStrengthRegularExpression;
    87       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    88     }
    89 
    90     /// <summary>
    91     ///Ein Test für "PasswordFormat"
     88      Assert.Inconclusive("Verify the correctness of this test method.");
     89    }
     90
     91    /// <summary>
     92    ///A test for PasswordFormat
    9293    ///</summary>
    9394    [TestMethod()]
    9495    public void PasswordFormatTest() {
    95       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     96      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    9697      MembershipPasswordFormat actual;
    9798      actual = target.PasswordFormat;
    98       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    99     }
    100 
    101     /// <summary>
    102     ///Ein Test für "PasswordAttemptWindow"
     99      Assert.Inconclusive("Verify the correctness of this test method.");
     100    }
     101
     102    /// <summary>
     103    ///A test for PasswordAttemptWindow
    103104    ///</summary>
    104105    [TestMethod()]
    105106    public void PasswordAttemptWindowTest() {
    106       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     107      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    107108      int actual;
    108109      actual = target.PasswordAttemptWindow;
    109       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    110     }
    111 
    112     /// <summary>
    113     ///Ein Test für "MinRequiredPasswordLength"
     110      Assert.Inconclusive("Verify the correctness of this test method.");
     111    }
     112
     113    /// <summary>
     114    ///A test for MinRequiredPasswordLength
    114115    ///</summary>
    115116    [TestMethod()]
    116117    public void MinRequiredPasswordLengthTest() {
    117       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     118      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    118119      int actual;
    119120      actual = target.MinRequiredPasswordLength;
    120       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    121     }
    122 
    123     /// <summary>
    124     ///Ein Test für "MinRequiredNonAlphanumericCharacters"
     121      Assert.Inconclusive("Verify the correctness of this test method.");
     122    }
     123
     124    /// <summary>
     125    ///A test for MinRequiredNonAlphanumericCharacters
    125126    ///</summary>
    126127    [TestMethod()]
    127128    public void MinRequiredNonAlphanumericCharactersTest() {
    128       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     129      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    129130      int actual;
    130131      actual = target.MinRequiredNonAlphanumericCharacters;
    131       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    132     }
    133 
    134     /// <summary>
    135     ///Ein Test für "MaxInvalidPasswordAttempts"
     132      Assert.Inconclusive("Verify the correctness of this test method.");
     133    }
     134
     135    /// <summary>
     136    ///A test for MaxInvalidPasswordAttempts
    136137    ///</summary>
    137138    [TestMethod()]
    138139    public void MaxInvalidPasswordAttemptsTest() {
    139       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     140      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    140141      int actual;
    141142      actual = target.MaxInvalidPasswordAttempts;
    142       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    143     }
    144 
    145     /// <summary>
    146     ///Ein Test für "EnablePasswordRetrieval"
     143      Assert.Inconclusive("Verify the correctness of this test method.");
     144    }
     145
     146    /// <summary>
     147    ///A test for EnablePasswordRetrieval
    147148    ///</summary>
    148149    [TestMethod()]
    149150    public void EnablePasswordRetrievalTest() {
    150       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     151      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    151152      bool actual;
    152153      actual = target.EnablePasswordRetrieval;
    153       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    154     }
    155 
    156     /// <summary>
    157     ///Ein Test für "EnablePasswordReset"
     154      Assert.Inconclusive("Verify the correctness of this test method.");
     155    }
     156
     157    /// <summary>
     158    ///A test for EnablePasswordReset
    158159    ///</summary>
    159160    [TestMethod()]
    160161    public void EnablePasswordResetTest() {
    161       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
     162      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
    162163      bool actual;
    163164      actual = target.EnablePasswordReset;
    164       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    165     }
    166 
    167     /// <summary>
    168     ///Ein Test für "ApplicationName"
     165      Assert.Inconclusive("Verify the correctness of this test method.");
     166    }
     167
     168    /// <summary>
     169    ///A test for ApplicationName
    169170    ///</summary>
    170171    [TestMethod()]
    171172    public void ApplicationNameTest() {
    172       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    173       string expected = string.Empty; // TODO: Passenden Wert initialisieren
     173      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     174      string expected = string.Empty; // TODO: Initialize to an appropriate value
    174175      string actual;
    175176      target.ApplicationName = expected;
    176177      actual = target.ApplicationName;
    177178      Assert.AreEqual(expected, actual);
    178       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    179     }
    180 
    181     /// <summary>
    182     ///Ein Test für "ValidateUser"
     179      Assert.Inconclusive("Verify the correctness of this test method.");
     180    }
     181
     182    /// <summary>
     183    ///A test for ValidateUser
    183184    ///</summary>
    184185    [TestMethod()]
    185186    public void ValidateUserTest() {
    186       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    187       string username = string.Empty; // TODO: Passenden Wert initialisieren
    188       string password = string.Empty; // TODO: Passenden Wert initialisieren
    189       bool expected = false; // TODO: Passenden Wert initialisieren
     187      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     188      string username = string.Empty; // TODO: Initialize to an appropriate value
     189      string password = string.Empty; // TODO: Initialize to an appropriate value
     190      bool expected = false; // TODO: Initialize to an appropriate value
    190191      bool actual;
    191192      actual = target.ValidateUser(username, password);
    192193      Assert.AreEqual(expected, actual);
    193       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    194     }
    195 
    196     /// <summary>
    197     ///Ein Test für "UpdateUser"
     194      Assert.Inconclusive("Verify the correctness of this test method.");
     195    }
     196
     197    /// <summary>
     198    ///A test for UpdateUser
    198199    ///</summary>
    199200    [TestMethod()]
    200201    public void UpdateUserTest() {
    201       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    202       MembershipUser user = null; // TODO: Passenden Wert initialisieren
     202      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     203      MembershipUser user = null; // TODO: Initialize to an appropriate value
    203204      target.UpdateUser(user);
    204       Assert.Inconclusive("Eine Methode, die keinen Wert zurückgibt, kann nicht überprüft werden.");
    205     }
    206 
    207     /// <summary>
    208     ///Ein Test für "UnlockUser"
     205      Assert.Inconclusive("A method that does not return a value cannot be verified.");
     206    }
     207
     208    /// <summary>
     209    ///A test for UnlockUser
    209210    ///</summary>
    210211    [TestMethod()]
    211212    public void UnlockUserTest() {
    212       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    213       string userName = string.Empty; // TODO: Passenden Wert initialisieren
    214       bool expected = false; // TODO: Passenden Wert initialisieren
     213      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     214      string userName = string.Empty; // TODO: Initialize to an appropriate value
     215      bool expected = false; // TODO: Initialize to an appropriate value
    215216      bool actual;
    216217      actual = target.UnlockUser(userName);
    217218      Assert.AreEqual(expected, actual);
    218       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    219     }
    220 
    221     /// <summary>
    222     ///Ein Test für "ResetPassword"
     219      Assert.Inconclusive("Verify the correctness of this test method.");
     220    }
     221
     222    /// <summary>
     223    ///A test for ResetPassword
    223224    ///</summary>
    224225    [TestMethod()]
    225226    public void ResetPasswordTest() {
    226       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    227       string username = string.Empty; // TODO: Passenden Wert initialisieren
    228       string answer = string.Empty; // TODO: Passenden Wert initialisieren
    229       string expected = string.Empty; // TODO: Passenden Wert initialisieren
     227      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     228      string username = string.Empty; // TODO: Initialize to an appropriate value
     229      string answer = string.Empty; // TODO: Initialize to an appropriate value
     230      string expected = string.Empty; // TODO: Initialize to an appropriate value
    230231      string actual;
    231232      actual = target.ResetPassword(username, answer);
    232233      Assert.AreEqual(expected, actual);
    233       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    234     }
    235 
    236     /// <summary>
    237     ///Ein Test für "GetUserNameByEmail"
     234      Assert.Inconclusive("Verify the correctness of this test method.");
     235    }
     236
     237    /// <summary>
     238    ///A test for GetUserNameByEmail
    238239    ///</summary>
    239240    [TestMethod()]
    240241    public void GetUserNameByEmailTest() {
    241       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    242       string email = string.Empty; // TODO: Passenden Wert initialisieren
    243       string expected = string.Empty; // TODO: Passenden Wert initialisieren
     242      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     243      string email = string.Empty; // TODO: Initialize to an appropriate value
     244      string expected = string.Empty; // TODO: Initialize to an appropriate value
    244245      string actual;
    245246      actual = target.GetUserNameByEmail(email);
    246247      Assert.AreEqual(expected, actual);
    247       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    248     }
    249 
    250     /// <summary>
    251     ///Ein Test für "GetUser"
     248      Assert.Inconclusive("Verify the correctness of this test method.");
     249    }
     250
     251    /// <summary>
     252    ///A test for GetUser
    252253    ///</summary>
    253254    [TestMethod()]
    254255    public void GetUserTest1() {
    255       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    256       object providerUserKey = null; // TODO: Passenden Wert initialisieren
    257       bool userIsOnline = false; // TODO: Passenden Wert initialisieren
    258       MembershipUser expected = null; // TODO: Passenden Wert initialisieren
     256      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     257      object providerUserKey = null; // TODO: Initialize to an appropriate value
     258      bool userIsOnline = false; // TODO: Initialize to an appropriate value
     259      MembershipUser expected = null; // TODO: Initialize to an appropriate value
    259260      MembershipUser actual;
    260261      actual = target.GetUser(providerUserKey, userIsOnline);
    261262      Assert.AreEqual(expected, actual);
    262       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    263     }
    264 
    265     /// <summary>
    266     ///Ein Test für "GetUser"
     263      Assert.Inconclusive("Verify the correctness of this test method.");
     264    }
     265
     266    /// <summary>
     267    ///A test for GetUser
    267268    ///</summary>
    268269    [TestMethod()]
    269270    public void GetUserTest() {
    270       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    271       string username = string.Empty; // TODO: Passenden Wert initialisieren
    272       bool userIsOnline = false; // TODO: Passenden Wert initialisieren
    273       MembershipUser expected = null; // TODO: Passenden Wert initialisieren
     271      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     272      string username = string.Empty; // TODO: Initialize to an appropriate value
     273      bool userIsOnline = false; // TODO: Initialize to an appropriate value
     274      MembershipUser expected = null; // TODO: Initialize to an appropriate value
    274275      MembershipUser actual;
    275276      actual = target.GetUser(username, userIsOnline);
    276277      Assert.AreEqual(expected, actual);
    277       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    278     }
    279 
    280     /// <summary>
    281     ///Ein Test für "GetPassword"
     278      Assert.Inconclusive("Verify the correctness of this test method.");
     279    }
     280
     281    /// <summary>
     282    ///A test for GetPassword
    282283    ///</summary>
    283284    [TestMethod()]
    284285    public void GetPasswordTest() {
    285       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    286       string username = string.Empty; // TODO: Passenden Wert initialisieren
    287       string answer = string.Empty; // TODO: Passenden Wert initialisieren
    288       string expected = string.Empty; // TODO: Passenden Wert initialisieren
     286      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     287      string username = string.Empty; // TODO: Initialize to an appropriate value
     288      string answer = string.Empty; // TODO: Initialize to an appropriate value
     289      string expected = string.Empty; // TODO: Initialize to an appropriate value
    289290      string actual;
    290291      actual = target.GetPassword(username, answer);
    291292      Assert.AreEqual(expected, actual);
    292       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    293     }
    294 
    295     /// <summary>
    296     ///Ein Test für "GetNumberOfUsersOnline"
     293      Assert.Inconclusive("Verify the correctness of this test method.");
     294    }
     295
     296    /// <summary>
     297    ///A test for GetNumberOfUsersOnline
    297298    ///</summary>
    298299    [TestMethod()]
    299300    public void GetNumberOfUsersOnlineTest() {
    300       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    301       int expected = 0; // TODO: Passenden Wert initialisieren
     301      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     302      int expected = 0; // TODO: Initialize to an appropriate value
    302303      int actual;
    303304      actual = target.GetNumberOfUsersOnline();
    304305      Assert.AreEqual(expected, actual);
    305       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    306     }
    307 
    308     /// <summary>
    309     ///Ein Test für "GetAllUsers"
     306      Assert.Inconclusive("Verify the correctness of this test method.");
     307    }
     308
     309    /// <summary>
     310    ///A test for GetAllUsers
    310311    ///</summary>
    311312    [TestMethod()]
    312313    public void GetAllUsersTest() {
    313       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    314       int pageIndex = 0; // TODO: Passenden Wert initialisieren
    315       int pageSize = 0; // TODO: Passenden Wert initialisieren
    316       int totalRecords = 0; // TODO: Passenden Wert initialisieren
    317       int totalRecordsExpected = 0; // TODO: Passenden Wert initialisieren
    318       MembershipUserCollection expected = null; // TODO: Passenden Wert initialisieren
     314      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     315      int pageIndex = 0; // TODO: Initialize to an appropriate value
     316      int pageSize = 0; // TODO: Initialize to an appropriate value
     317      int totalRecords = 0; // TODO: Initialize to an appropriate value
     318      int totalRecordsExpected = 0; // TODO: Initialize to an appropriate value
     319      MembershipUserCollection expected = null; // TODO: Initialize to an appropriate value
    319320      MembershipUserCollection actual;
    320321      actual = target.GetAllUsers(pageIndex, pageSize, out totalRecords);
    321322      Assert.AreEqual(totalRecordsExpected, totalRecords);
    322323      Assert.AreEqual(expected, actual);
    323       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    324     }
    325 
    326     /// <summary>
    327     ///Ein Test für "FindUsersByName"
     324      Assert.Inconclusive("Verify the correctness of this test method.");
     325    }
     326
     327    /// <summary>
     328    ///A test for FindUsersByName
    328329    ///</summary>
    329330    [TestMethod()]
    330331    public void FindUsersByNameTest() {
    331       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    332       string usernameToMatch = string.Empty; // TODO: Passenden Wert initialisieren
    333       int pageIndex = 0; // TODO: Passenden Wert initialisieren
    334       int pageSize = 0; // TODO: Passenden Wert initialisieren
    335       int totalRecords = 0; // TODO: Passenden Wert initialisieren
    336       int totalRecordsExpected = 0; // TODO: Passenden Wert initialisieren
    337       MembershipUserCollection expected = null; // TODO: Passenden Wert initialisieren
     332      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     333      string usernameToMatch = string.Empty; // TODO: Initialize to an appropriate value
     334      int pageIndex = 0; // TODO: Initialize to an appropriate value
     335      int pageSize = 0; // TODO: Initialize to an appropriate value
     336      int totalRecords = 0; // TODO: Initialize to an appropriate value
     337      int totalRecordsExpected = 0; // TODO: Initialize to an appropriate value
     338      MembershipUserCollection expected = null; // TODO: Initialize to an appropriate value
    338339      MembershipUserCollection actual;
    339340      actual = target.FindUsersByName(usernameToMatch, pageIndex, pageSize, out totalRecords);
    340341      Assert.AreEqual(totalRecordsExpected, totalRecords);
    341342      Assert.AreEqual(expected, actual);
    342       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    343     }
    344 
    345     /// <summary>
    346     ///Ein Test für "FindUsersByEmail"
     343      Assert.Inconclusive("Verify the correctness of this test method.");
     344    }
     345
     346    /// <summary>
     347    ///A test for FindUsersByEmail
    347348    ///</summary>
    348349    [TestMethod()]
    349350    public void FindUsersByEmailTest() {
    350       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    351       string emailToMatch = string.Empty; // TODO: Passenden Wert initialisieren
    352       int pageIndex = 0; // TODO: Passenden Wert initialisieren
    353       int pageSize = 0; // TODO: Passenden Wert initialisieren
    354       int totalRecords = 0; // TODO: Passenden Wert initialisieren
    355       int totalRecordsExpected = 0; // TODO: Passenden Wert initialisieren
    356       MembershipUserCollection expected = null; // TODO: Passenden Wert initialisieren
     351      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     352      string emailToMatch = string.Empty; // TODO: Initialize to an appropriate value
     353      int pageIndex = 0; // TODO: Initialize to an appropriate value
     354      int pageSize = 0; // TODO: Initialize to an appropriate value
     355      int totalRecords = 0; // TODO: Initialize to an appropriate value
     356      int totalRecordsExpected = 0; // TODO: Initialize to an appropriate value
     357      MembershipUserCollection expected = null; // TODO: Initialize to an appropriate value
    357358      MembershipUserCollection actual;
    358359      actual = target.FindUsersByEmail(emailToMatch, pageIndex, pageSize, out totalRecords);
    359360      Assert.AreEqual(totalRecordsExpected, totalRecords);
    360361      Assert.AreEqual(expected, actual);
    361       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    362     }
    363 
    364     /// <summary>
    365     ///Ein Test für "DeleteUser"
     362      Assert.Inconclusive("Verify the correctness of this test method.");
     363    }
     364
     365    /// <summary>
     366    ///A test for DeleteUser
    366367    ///</summary>
    367368    [TestMethod()]
    368369    public void DeleteUserTest() {
    369       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    370       string username = string.Empty; // TODO: Passenden Wert initialisieren
    371       bool deleteAllRelatedData = false; // TODO: Passenden Wert initialisieren
    372       bool expected = false; // TODO: Passenden Wert initialisieren
     370      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     371      string username = string.Empty; // TODO: Initialize to an appropriate value
     372      bool deleteAllRelatedData = false; // TODO: Initialize to an appropriate value
     373      bool expected = false; // TODO: Initialize to an appropriate value
    373374      bool actual;
    374375      actual = target.DeleteUser(username, deleteAllRelatedData);
    375376      Assert.AreEqual(expected, actual);
    376       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    377     }
    378 
    379     /// <summary>
    380     ///Ein Test für "CreateUser"
     377      Assert.Inconclusive("Verify the correctness of this test method.");
     378    }
     379
     380    /// <summary>
     381    ///A test for CreateUser
    381382    ///</summary>
    382383    [TestMethod()]
    383384    public void CreateUserTest() {
    384       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    385       string username = string.Empty; // TODO: Passenden Wert initialisieren
    386       string password = string.Empty; // TODO: Passenden Wert initialisieren
    387       string email = string.Empty; // TODO: Passenden Wert initialisieren
    388       string passwordQuestion = string.Empty; // TODO: Passenden Wert initialisieren
    389       string passwordAnswer = string.Empty; // TODO: Passenden Wert initialisieren
    390       bool isApproved = false; // TODO: Passenden Wert initialisieren
    391       object providerUserKey = null; // TODO: Passenden Wert initialisieren
    392       MembershipCreateStatus status = new MembershipCreateStatus(); // TODO: Passenden Wert initialisieren
    393       MembershipCreateStatus statusExpected = new MembershipCreateStatus(); // TODO: Passenden Wert initialisieren
    394       MembershipUser expected = null; // TODO: Passenden Wert initialisieren
     385      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     386      string username = string.Empty; // TODO: Initialize to an appropriate value
     387      string password = string.Empty; // TODO: Initialize to an appropriate value
     388      string email = string.Empty; // TODO: Initialize to an appropriate value
     389      string passwordQuestion = string.Empty; // TODO: Initialize to an appropriate value
     390      string passwordAnswer = string.Empty; // TODO: Initialize to an appropriate value
     391      bool isApproved = false; // TODO: Initialize to an appropriate value
     392      object providerUserKey = null; // TODO: Initialize to an appropriate value
     393      MembershipCreateStatus status = new MembershipCreateStatus(); // TODO: Initialize to an appropriate value
     394      MembershipCreateStatus statusExpected = new MembershipCreateStatus(); // TODO: Initialize to an appropriate value
     395      MembershipUser expected = null; // TODO: Initialize to an appropriate value
    395396      MembershipUser actual;
    396397      actual = target.CreateUser(username, password, email, passwordQuestion, passwordAnswer, isApproved, providerUserKey, out status);
    397398      Assert.AreEqual(statusExpected, status);
    398399      Assert.AreEqual(expected, actual);
    399       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    400     }
    401 
    402     /// <summary>
    403     ///Ein Test für "ChangePasswordQuestionAndAnswer"
     400      Assert.Inconclusive("Verify the correctness of this test method.");
     401    }
     402
     403    /// <summary>
     404    ///A test for ChangePasswordQuestionAndAnswer
    404405    ///</summary>
    405406    [TestMethod()]
    406407    public void ChangePasswordQuestionAndAnswerTest() {
    407       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    408       string username = string.Empty; // TODO: Passenden Wert initialisieren
    409       string password = string.Empty; // TODO: Passenden Wert initialisieren
    410       string newPasswordQuestion = string.Empty; // TODO: Passenden Wert initialisieren
    411       string newPasswordAnswer = string.Empty; // TODO: Passenden Wert initialisieren
    412       bool expected = false; // TODO: Passenden Wert initialisieren
     408      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     409      string username = string.Empty; // TODO: Initialize to an appropriate value
     410      string password = string.Empty; // TODO: Initialize to an appropriate value
     411      string newPasswordQuestion = string.Empty; // TODO: Initialize to an appropriate value
     412      string newPasswordAnswer = string.Empty; // TODO: Initialize to an appropriate value
     413      bool expected = false; // TODO: Initialize to an appropriate value
    413414      bool actual;
    414415      actual = target.ChangePasswordQuestionAndAnswer(username, password, newPasswordQuestion, newPasswordAnswer);
    415416      Assert.AreEqual(expected, actual);
    416       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    417     }
    418 
    419     /// <summary>
    420     ///Ein Test für "ChangePassword"
     417      Assert.Inconclusive("Verify the correctness of this test method.");
     418    }
     419
     420    /// <summary>
     421    ///A test for ChangePassword
    421422    ///</summary>
    422423    [TestMethod()]
    423424    public void ChangePasswordTest() {
    424       HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Passenden Wert initialisieren
    425       string username = string.Empty; // TODO: Passenden Wert initialisieren
    426       string oldPassword = string.Empty; // TODO: Passenden Wert initialisieren
    427       string newPassword = string.Empty; // TODO: Passenden Wert initialisieren
    428       bool expected = false; // TODO: Passenden Wert initialisieren
     425      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider(); // TODO: Initialize to an appropriate value
     426      string username = string.Empty; // TODO: Initialize to an appropriate value
     427      string oldPassword = string.Empty; // TODO: Initialize to an appropriate value
     428      string newPassword = string.Empty; // TODO: Initialize to an appropriate value
     429      bool expected = false; // TODO: Initialize to an appropriate value
    429430      bool actual;
    430431      actual = target.ChangePassword(username, oldPassword, newPassword);
    431432      Assert.AreEqual(expected, actual);
    432       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    433     }
    434 
    435     /// <summary>
    436     ///Ein Test für "HeuristicLabMembershipProvider-Konstruktor"
     433      Assert.Inconclusive("Verify the correctness of this test method.");
     434    }
     435
     436    /// <summary>
     437    ///A test for HeuristicLabMembershipProvider Constructor
    437438    ///</summary>
    438439    [TestMethod()]
    439440    public void HeuristicLabMembershipProviderConstructorTest() {
    440441      HeuristicLabMembershipProvider target = new HeuristicLabMembershipProvider();
    441       Assert.Inconclusive("TODO: Code zum Überprüfen des Ziels implementieren");
     442      Assert.Inconclusive("TODO: Implement code to verify target");
    442443    }
    443444  }
  • branches/HeuristicLab.Services.Authentication Prototype/UnitTests/HeuristicLabRoleProviderTest.cs

    r3943 r3948  
    33namespace UnitTests {
    44  /// <summary>
    5   ///Dies ist eine Testklasse für "HeuristicLabRoleProviderTest" und soll
    6   ///alle HeuristicLabRoleProviderTest Komponententests enthalten.
     5  ///This is a test class for HeuristicLabRoleProviderTest and is intended
     6  ///to contain all HeuristicLabRoleProviderTest Unit Tests
    77  ///</summary>
    88  [TestClass()]
     
    1111
    1212    /// <summary>
    13     ///Ruft den Testkontext auf, der Informationen
    14     ///über und Funktionalität für den aktuellen Testlauf bietet, oder legt diesen fest.
     13    ///Gets or sets the test context which provides
     14    ///information about and functionality for the current test run.
    1515    ///</summary>
    1616    public TestContext TestContext {
     
    2323    }
    2424
    25     #region Zusätzliche Testattribute
     25    #region Additional test attributes
    2626    //
    27     //Sie können beim Verfassen Ihrer Tests die folgenden zusätzlichen Attribute verwenden:
    28     //
    29     //Mit ClassInitialize führen Sie Code aus, bevor Sie den ersten Test in der Klasse ausführen.
     27    //You can use the following additional attributes as you write your tests:
     28    //
     29    //Use ClassInitialize to run code before running the first test in the class
    3030    //[ClassInitialize()]
    3131    //public static void MyClassInitialize(TestContext testContext)
     
    3333    //}
    3434    //
    35     //Mit ClassCleanup führen Sie Code aus, nachdem alle Tests in einer Klasse ausgeführt wurden.
     35    //Use ClassCleanup to run code after all tests in a class have run
    3636    //[ClassCleanup()]
    3737    //public static void MyClassCleanup()
     
    3939    //}
    4040    //
    41     //Mit TestInitialize können Sie vor jedem einzelnen Test Code ausführen.
     41    //Use TestInitialize to run code before running each test
    4242    //[TestInitialize()]
    4343    //public void MyTestInitialize()
     
    4545    //}
    4646    //
    47     //Mit TestCleanup können Sie nach jedem einzelnen Test Code ausführen.
     47    //Use TestCleanup to run code after each test has run
    4848    //[TestCleanup()]
    4949    //public void MyTestCleanup()
     
    5353    #endregion
    5454
    55     /// <summary>
    56     ///Ein Test für "ApplicationName"
     55
     56    /// <summary>
     57    ///A test for ApplicationName
    5758    ///</summary>
    5859    [TestMethod()]
    5960    public void ApplicationNameTest() {
    60       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    61       string expected = string.Empty; // TODO: Passenden Wert initialisieren
     61      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     62      string expected = string.Empty; // TODO: Initialize to an appropriate value
    6263      string actual;
    6364      target.ApplicationName = expected;
    6465      actual = target.ApplicationName;
    6566      Assert.AreEqual(expected, actual);
    66       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    67     }
    68 
    69     /// <summary>
    70     ///Ein Test für "RoleExists"
     67      Assert.Inconclusive("Verify the correctness of this test method.");
     68    }
     69
     70    /// <summary>
     71    ///A test for RoleExists
    7172    ///</summary>
    7273    [TestMethod()]
    7374    public void RoleExistsTest() {
    74       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    75       string roleName = string.Empty; // TODO: Passenden Wert initialisieren
    76       bool expected = false; // TODO: Passenden Wert initialisieren
     75      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     76      string roleName = string.Empty; // TODO: Initialize to an appropriate value
     77      bool expected = false; // TODO: Initialize to an appropriate value
    7778      bool actual;
    7879      actual = target.RoleExists(roleName);
    7980      Assert.AreEqual(expected, actual);
    80       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    81     }
    82 
    83     /// <summary>
    84     ///Ein Test für "RemoveUsersFromRoles"
     81      Assert.Inconclusive("Verify the correctness of this test method.");
     82    }
     83
     84    /// <summary>
     85    ///A test for RemoveUsersFromRoles
    8586    ///</summary>
    8687    [TestMethod()]
    8788    public void RemoveUsersFromRolesTest() {
    88       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    89       string[] usernames = null; // TODO: Passenden Wert initialisieren
    90       string[] roleNames = null; // TODO: Passenden Wert initialisieren
     89      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     90      string[] usernames = null; // TODO: Initialize to an appropriate value
     91      string[] roleNames = null; // TODO: Initialize to an appropriate value
    9192      target.RemoveUsersFromRoles(usernames, roleNames);
    92       Assert.Inconclusive("Eine Methode, die keinen Wert zurückgibt, kann nicht überprüft werden.");
    93     }
    94 
    95     /// <summary>
    96     ///Ein Test für "IsUserInRole"
     93      Assert.Inconclusive("A method that does not return a value cannot be verified.");
     94    }
     95
     96    /// <summary>
     97    ///A test for IsUserInRole
    9798    ///</summary>
    9899    [TestMethod()]
    99100    public void IsUserInRoleTest() {
    100       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    101       string username = string.Empty; // TODO: Passenden Wert initialisieren
    102       string roleName = string.Empty; // TODO: Passenden Wert initialisieren
    103       bool expected = false; // TODO: Passenden Wert initialisieren
     101      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     102      string username = string.Empty; // TODO: Initialize to an appropriate value
     103      string roleName = string.Empty; // TODO: Initialize to an appropriate value
     104      bool expected = false; // TODO: Initialize to an appropriate value
    104105      bool actual;
    105106      actual = target.IsUserInRole(username, roleName);
    106107      Assert.AreEqual(expected, actual);
    107       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    108     }
    109 
    110     /// <summary>
    111     ///Ein Test für "GetUsersInRole"
     108      Assert.Inconclusive("Verify the correctness of this test method.");
     109    }
     110
     111    /// <summary>
     112    ///A test for GetUsersInRole
    112113    ///</summary>
    113114    [TestMethod()]
    114115    public void GetUsersInRoleTest() {
    115       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    116       string roleName = string.Empty; // TODO: Passenden Wert initialisieren
    117       string[] expected = null; // TODO: Passenden Wert initialisieren
     116      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     117      string roleName = string.Empty; // TODO: Initialize to an appropriate value
     118      string[] expected = null; // TODO: Initialize to an appropriate value
    118119      string[] actual;
    119120      actual = target.GetUsersInRole(roleName);
    120121      Assert.AreEqual(expected, actual);
    121       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    122     }
    123 
    124     /// <summary>
    125     ///Ein Test für "GetRolesForUser"
     122      Assert.Inconclusive("Verify the correctness of this test method.");
     123    }
     124
     125    /// <summary>
     126    ///A test for GetRolesForUser
    126127    ///</summary>
    127128    [TestMethod()]
    128129    public void GetRolesForUserTest() {
    129       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    130       string username = string.Empty; // TODO: Passenden Wert initialisieren
    131       string[] expected = null; // TODO: Passenden Wert initialisieren
     130      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     131      string username = string.Empty; // TODO: Initialize to an appropriate value
     132      string[] expected = null; // TODO: Initialize to an appropriate value
    132133      string[] actual;
    133134      actual = target.GetRolesForUser(username);
    134135      Assert.AreEqual(expected, actual);
    135       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    136     }
    137 
    138     /// <summary>
    139     ///Ein Test für "GetAllRoles"
     136      Assert.Inconclusive("Verify the correctness of this test method.");
     137    }
     138
     139    /// <summary>
     140    ///A test for GetAllRoles
    140141    ///</summary>
    141142    [TestMethod()]
    142143    public void GetAllRolesTest() {
    143       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    144       string[] expected = null; // TODO: Passenden Wert initialisieren
     144      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     145      string[] expected = null; // TODO: Initialize to an appropriate value
    145146      string[] actual;
    146147      actual = target.GetAllRoles();
    147148      Assert.AreEqual(expected, actual);
    148       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    149     }
    150 
    151     /// <summary>
    152     ///Ein Test für "FindUsersInRole"
     149      Assert.Inconclusive("Verify the correctness of this test method.");
     150    }
     151
     152    /// <summary>
     153    ///A test for FindUsersInRole
    153154    ///</summary>
    154155    [TestMethod()]
    155156    public void FindUsersInRoleTest() {
    156       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    157       string roleName = string.Empty; // TODO: Passenden Wert initialisieren
    158       string usernameToMatch = string.Empty; // TODO: Passenden Wert initialisieren
    159       string[] expected = null; // TODO: Passenden Wert initialisieren
     157      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     158      string roleName = string.Empty; // TODO: Initialize to an appropriate value
     159      string usernameToMatch = string.Empty; // TODO: Initialize to an appropriate value
     160      string[] expected = null; // TODO: Initialize to an appropriate value
    160161      string[] actual;
    161162      actual = target.FindUsersInRole(roleName, usernameToMatch);
    162163      Assert.AreEqual(expected, actual);
    163       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    164     }
    165 
    166     /// <summary>
    167     ///Ein Test für "DeleteRole"
     164      Assert.Inconclusive("Verify the correctness of this test method.");
     165    }
     166
     167    /// <summary>
     168    ///A test for DeleteRole
    168169    ///</summary>
    169170    [TestMethod()]
    170171    public void DeleteRoleTest() {
    171       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    172       string roleName = string.Empty; // TODO: Passenden Wert initialisieren
    173       bool throwOnPopulatedRole = false; // TODO: Passenden Wert initialisieren
    174       bool expected = false; // TODO: Passenden Wert initialisieren
     172      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     173      string roleName = string.Empty; // TODO: Initialize to an appropriate value
     174      bool throwOnPopulatedRole = false; // TODO: Initialize to an appropriate value
     175      bool expected = false; // TODO: Initialize to an appropriate value
    175176      bool actual;
    176177      actual = target.DeleteRole(roleName, throwOnPopulatedRole);
    177178      Assert.AreEqual(expected, actual);
    178       Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
    179     }
    180 
    181     /// <summary>
    182     ///Ein Test für "CreateRole"
     179      Assert.Inconclusive("Verify the correctness of this test method.");
     180    }
     181
     182    /// <summary>
     183    ///A test for CreateRole
    183184    ///</summary>
    184185    [TestMethod()]
    185186    public void CreateRoleTest() {
    186       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    187       string roleName = string.Empty; // TODO: Passenden Wert initialisieren
     187      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     188      string roleName = string.Empty; // TODO: Initialize to an appropriate value
    188189      target.CreateRole(roleName);
    189       Assert.Inconclusive("Eine Methode, die keinen Wert zurückgibt, kann nicht überprüft werden.");
    190     }
    191 
    192     /// <summary>
    193     ///Ein Test für "AddUsersToRoles"
     190      Assert.Inconclusive("A method that does not return a value cannot be verified.");
     191    }
     192
     193    /// <summary>
     194    ///A test for AddUsersToRoles
    194195    ///</summary>
    195196    [TestMethod()]
    196197    public void AddUsersToRolesTest() {
    197       HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Passenden Wert initialisieren
    198       string[] usernames = null; // TODO: Passenden Wert initialisieren
    199       string[] roleNames = null; // TODO: Passenden Wert initialisieren
     198      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider(); // TODO: Initialize to an appropriate value
     199      string[] usernames = null; // TODO: Initialize to an appropriate value
     200      string[] roleNames = null; // TODO: Initialize to an appropriate value
    200201      target.AddUsersToRoles(usernames, roleNames);
    201       Assert.Inconclusive("Eine Methode, die keinen Wert zurückgibt, kann nicht überprüft werden.");
    202     }
    203 
    204     /// <summary>
    205     ///Ein Test für "HeuristicLabRoleProvider-Konstruktor"
     202      Assert.Inconclusive("A method that does not return a value cannot be verified.");
     203    }
     204
     205    /// <summary>
     206    ///A test for HeuristicLabRoleProvider Constructor
    206207    ///</summary>
    207208    [TestMethod()]
    208209    public void HeuristicLabRoleProviderConstructorTest() {
    209210      HeuristicLabRoleProvider target = new HeuristicLabRoleProvider();
    210       Assert.Inconclusive("TODO: Code zum Überprüfen des Ziels implementieren");
     211      Assert.Inconclusive("TODO: Implement code to verify target");
    211212    }
    212213  }
Note: See TracChangeset for help on using the changeset viewer.