public void UnionT1T2T3HasValueTest_ReturnsFalseAndDoesNotThrowExceptionTypeNotInUnion() { var union = new Union <int, string, Plants>(2); var hasBool = union.HasValueOf <bool>(); IsFalse(hasBool); }
public void UnionT1HasValueTest_ReturnsTrue() { var union = new Union <int, string, Plants>(2); var hasInteger = union.HasValueOf <int>(); IsTrue(hasInteger); }
public void UnionT1T2T3HasValueTest_ReturnsFalse() { var union = new Union <int, string, Plants>(2); var hasPlants = union.HasValueOf <Plants>(); IsFalse(hasPlants); }
public void UnionT1T2HasValueTest_ReturnsFalse() { var union = new Union <int, string>(2); var hasString = union.HasValueOf <string>(); IsFalse(hasString); }