public void MapValueToGoogleConvertsTypes(GoogleType googleType, string value, object expected, Type expectedType) { // Arrange var deviceState = new DeviceState(); // Hack for decimal constant values for InlineData if (expected is double) { expected = Convert.ToDecimal(expected); } // Act var result = deviceState.MapValueToGoogle(value, googleType); // Assert Assert.Equal(expected, result); Assert.Equal(expectedType, result.GetType()); }