{
var result = Information.TryGetValue<bool>(item.Key, out value);
Assert.IsTrue(result, string.Format("Failed to get value for valid bool key: {0}", item.Key));
- Assert.IsTrue(item.Value == value, string.Format("For Key: {0}, Expected: {1}, Actual: {2}", item.Key, item.Value, value));
result = Information.TryGetValue(item.Key, out value);
Assert.IsTrue(result, string.Format("Failed to get value for valid bool key: {0}", item.Key));
- Assert.IsTrue(item.Value == value, string.Format("For Key: {0}, Expected: {1}, Actual: {2}", item.Key, item.Value, value));
}
}
{
var result = Information.TryGetValue<double>(item.Key, out value);
Assert.IsTrue(result, string.Format("Failed to get value for valid double key: {0}", item.Key));
- Assert.AreEqual(item.Value, value, string.Format("For Key: {0}, Expected: {1}, Actual: {2}", item.Key, item.Value, value));
result = Information.TryGetValue(item.Key, out value);
Assert.IsTrue(result, string.Format("Failed to get value for valid double key: {0}", item.Key));
- Assert.AreEqual(item.Value, value, string.Format("For Key: {0}, Expected: {1}, Actual: {2}", item.Key, item.Value, value));
}
}
{
var result = Information.TryGetValue<int>(item.Key, out value);
Assert.IsTrue(result, string.Format("Failed to get value for valid int key: {0}", item.Key));
- Assert.AreEqual(item.Value, value, string.Format("For Key: {0}, Expected: {1}, Actual: {2}", item.Key, item.Value, value));
result = Information.TryGetValue(item.Key, out value);
Assert.IsTrue(result, string.Format("Failed to get value for valid int key: {0}", item.Key));
- Assert.AreEqual(item.Value, value, string.Format("For Key: {0}, Expected: {1}, Actual: {2}", item.Key, item.Value, value));
}
}
{
var result = Information.TryGetValue<string>(item.Key, out value);
Assert.IsTrue(result, string.Format("Failed to get value for valid string key: {0}", item.Key));
- Assert.AreEqual(item.Value, value, string.Format("For Key: {0}, Expected: {1}, Actual: {2}", item.Key, item.Value, value));
result = Information.TryGetValue(item.Key, out value);
Assert.IsTrue(result, string.Format("Failed to get value for valid string key: {0}", item.Key));
- Assert.AreEqual(item.Value, value, string.Format("For Key: {0}, Expected: {1}, Actual: {2}", item.Key, item.Value, value));
}
}