public void WithTagVelocity_ShouldReturnDtoVelocity() { Tag tag = VelocityTag(value: 12); TagDtoAssembler assembler = CreateAssembler(); TagDTO dto = assembler.Assemble(tag); dto.ShouldHaveValues( type: typeof(byte).ToString(), name: "Velocity", value: "12", unit: "m/s", comment: "Ruuuun!", key: "Velocity"); }
public void WithTag_ShouldReturnDto() { Tag tag = Tag( dataType: IEC61131_3_DataTypes.Int, name: "Throughput", value: 2100, unit: "Shirts", comment: "Shirts, baby"); TagDtoAssembler assembler = CreateAssembler(); TagDTO dto = assembler.Assemble(tag); dto.ShouldHaveValues( type: typeof(short).ToString(), name: "Throughput", value: "2100", unit: "Shirts", comment: "Shirts, baby", key: "Throughput"); }