public void Should_CreateCommand(string command, CommandDay8 expected) { var inputHandler = new InputHandlerServiceDay8(); var result = inputHandler.CreateCommand(command); result.Should().BeOfType(expected.GetType()); result.Should().BeEquivalentTo(expected); }
public void ShouldNot_CreateCommand(string command) { var inputHandler = new InputHandlerServiceDay8(); Assert.Throws <Exception>(() => inputHandler.CreateCommand(command)); }