public void ReturnsReset() { // act var cmd = new ResetCommand(); // assert Assert.Equal("reset", cmd.CommandName); }
public void CallsReplReset() { // arrange var repl = new Mock<IRepl>(); var cmd = new ResetCommand(); // act cmd.Execute(repl.Object, null); // assert repl.Verify(x => x.Reset(), Times.Once); }
public void CallsReplReset() { // arrange var executor = new Mock<IScriptExecutor>(); var cmd = new ResetCommand(); // act cmd.Execute(executor.Object, null); // assert executor.Verify(x => x.Reset(), Times.Once); }