public void BoostVariant_GetValue_ReturnsTypedValue() { BoostVariant val = new BoostVariant(); val.SetValue(55); Assert.Equal(55, val.GetValue <int>()); }
public void BoostVariant_GetValue_FailsIfCastIsImpossible() { BoostVariant val = new BoostVariant(); val.SetValue(55); Assert.Throws <InvalidCastException>(() => val.GetValue <string>()); }
public void BoostVariant_GetValue_FailsIfCastIsImpossible() { BoostVariant val = new BoostVariant(); val.SetValue(55); Assert.AreEqual(55, val.GetValue <string>()); }