public void CanMapToGoogle(string mqttValue, string googleValue, string value, string expectedResult) { // Arrange var mapper = new ValueMap { Google = googleValue, Mqtt = mqttValue }; // Act var matches = mapper.MatchesMqtt(value); var result = mapper.ConvertToGoogle(value); // Assert Assert.True(matches); Assert.Equal(expectedResult, result); }