public void PromptsForWindowsLogonAccount() { using (TestHostContext hc = CreateTestContext()) { // Arrange. var command = new CommandSettings(hc, args: new string[0]); _promptManager .Setup(x => x.ReadValue( Constants.Agent.CommandLine.Args.WindowsLogonAccount, // argName StringUtil.Loc("WindowsLogonAccountNameDescription"), // description false, // secret "some default account", // defaultValue Validators.NTAccountValidator, // validator false)) // unattended .Returns("some windows logon account"); // Act. string actual = command.GetWindowsLogonAccount("some default account"); // Assert. Assert.Equal("some windows logon account", actual); } }