public void TestDeserialize() { // ARRANGE var testString = @"<?xml version='1.0' encoding='utf-16'?><TrackingConfig xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'><Date>1977-08-12T00:00:00</Date><SearchObjectSizePixels>0</SearchObjectSizePixels><HueMin>189</HueMin><HueMax>278</HueMax><SaturationMin>0.321</SaturationMin><SaturationMax>0.88</SaturationMax><LuminanceMin>0.2</LuminanceMin><LuminanceMax>0.6</LuminanceMax></TrackingConfig>"; // ACT var trackingConfig = XmlDeSerializer.Deserialize <TrackingConfig>(testString); // ASSERT Assert.IsTrue(trackingConfig.LuminanceMax == 0.6f); }