public static void Contains(IList collection, object value, string message)
        {
#if !(NETFX_CORE || DNXCORE50)
            Assert.Contains(value, collection, message);
#else
            if (!collection.Cast <object>().Any(i => i.Equals(value)))
            {
                throw new Exception(message ?? "Value not found in collection.");
            }
#endif
        }