public void testGetPreferenceValue() { PlusAnonymousConcurrentUserDataModel instance = getTestableWithoutDelegateData(10); long anonymousUserID = instance.TakeAvailableUser().Value; IPreferenceArray tempPrefs = new GenericUserPreferenceArray(1); tempPrefs.SetUserID(0, anonymousUserID); long sampleItemID = 1; tempPrefs.SetItemID(0, sampleItemID); tempPrefs.SetValue(0, float.MaxValue); instance.SetTempPrefs(tempPrefs, anonymousUserID); Assert.AreEqual(float.MaxValue, instance.GetPreferenceValue(anonymousUserID, sampleItemID), EPSILON); }