14 references to TestConditional
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\TargetTypedConditionalOperatorTests.cs (14)
31TestConditional("b ? -1L : 1UL", "System.Double", null); 34TestConditional("b ? GetB() : GetC()", "A", null); 35TestConditional("b ? Get<IOut<B>>() : Get<IOut<C>>()", "IOut<A>", null); 36TestConditional("b ? Get<IOut<IOut<B>>>() : Get<IOut<IOut<C>>>()", "IOut<IOut<A>>", null); 37TestConditional("b ? Get<IOut<B[]>>() : Get<IOut<C[]>>()", "IOut<A[]>", null); 38TestConditional("b ? Get<U>() : Get<V>()", "T", null); 41TestConditional("b ? GetUInt() : GetInt()", "System.Int64", null); 57TestConditional("b ? 1 : null", "System.Int64?", null); 60TestConditional("b ? GetUInt() : GetInt()", "System.IComparable", null); 63TestConditional("b ? GetB() : GetC()", "X", null); 66TestConditional("b ? a=>a : b=>b", "Del", null); 69TestConditional("b ? M1 : M2", "Del", null); 72TestConditional("b ? GetIntp() : GetLongp()", "void*", null); 73TestConditional("b ? null : null", "System.Int32*", null);