public void WithNull_ShouldReturnNull() { PlcInformationDtoAssembler assembler = CreateAssembler(); CommandDTO dto = assembler.AssembleCommandDto(null); dto.Should().BeNull(); }
public void WithCommandStop_ShouldReturnDtoStop() { ICommand command = Command(Stop(), StopsIt()); PlcInformationDtoAssembler assembler = CreateAssembler(); CommandDTO dto = assembler.AssembleCommandDto(command); dto.ShouldHaveValues(Stop(), StopsIt()); }