예제 #1
0
        public void Test_InvalidMappings(string serial)
        {
            Action act = () => MachineSerialUtilities.MapSerialToModel(serial);

            act.Should().Throw <ArgumentException>().WithMessage("No mapping exists for this serial number");
        }
예제 #2
0
 public void Test_SerialToPlatform(string serial, CWSDeviceTypeEnum expectedModel)
 {
     MachineSerialUtilities.MapSerialToModel(serial).Should().Be(expectedModel);
 }