public void ShoulldWaitForAttachReturnsTrueWhenValidateArgumentsArgIsPassed() { var args = new[] { "--validate-arguments" }; var shouldWait = ModularInput.ShouldWaitForDebuggerToAttach(args, DebuggerAttachPoints.ValidateArguments); Assert.True(shouldWait); }
public void ShouldWaitForDebuggerToAttachReturnsTrueWhenNoArgIsPassed() { var args = new string[0]; var shouldWait = ModularInput.ShouldWaitForDebuggerToAttach(args, DebuggerAttachPoints.StreamEvents); Assert.True(shouldWait); }
public void ShouldWaitForDebuggerToAttachReturnsFalseWhenNoneIsPassed() { var args = new string[] { "--scheme" }; var shouldWait = ModularInput.ShouldWaitForDebuggerToAttach(args, DebuggerAttachPoints.None); Assert.False(shouldWait); args = new string[] { "--validate-arguments" }; shouldWait = ModularInput.ShouldWaitForDebuggerToAttach(args, DebuggerAttachPoints.None); Assert.False(shouldWait); args = new string[0]; shouldWait = ModularInput.ShouldWaitForDebuggerToAttach(args, DebuggerAttachPoints.None); Assert.False(shouldWait); }