public void FindPassword_ReturnsRightString() { string[] testData = Resources.WeekFourPractice.Split( new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); var brootforse = new PasswordBruteforce(); string password = brootforse.FindPassword(testData); Assert.That(password, Is.EqualTo("aaojzzr")); }
public void FindPassword_SmallInputData_ReturnsRightString() { string[] testData = new[] { "hzt", "sng", "ena", "sdt", "qds", "yif", "slt", "lpz", "cqc", "hpo" }; var brootforse = new PasswordBruteforce(); string password = brootforse.FindPassword(testData); Assert.That(password, Is.EqualTo("cqcsyif")); }