/// <summary> ///Ein Test für "SetValue" ///</summary> public void SetValueTestHelper <TValueType>() { var obj = new TweeningTestObject(); var fieldInfo = obj.GetType().GetField("GenericValue"); var target = new FieldAccessor <TValueType>(obj, fieldInfo); const int containedValue = 100; var value = (TValueType)Convert.ChangeType(new GenericParameterHelper(containedValue), typeof(TValueType)); target.SetValue(value); var expected = (TValueType)Convert.ChangeType(obj.GenericValue, typeof(TValueType)); Assert.AreEqual(expected, value); Assert.AreEqual(obj.GenericValue.Data, containedValue); }