/// <summary>Test stub for AsCPPType(Type)</summary> ///[PexMethod] public string AsCPPType(Type t) { string result = VarUtils.AsCPPType(t); Assert.IsNotNull(result, "null return for the type! Bad!"); Assert.IsTrue(result.Length > 0, "Length of string should not be zero!"); return(result); }
public void TestAsCppTypeForMapArrayIter() { string result = VarUtils.AsCPPType(typeof(IEnumerable <Dictionary <int, double[]> >)); Assert.AreEqual("map<int, vector<double> >::const_iterator", result, "map type of array"); }
public void TestAsCppTypeForMapArray() { string result = VarUtils.AsCPPType(typeof(Dictionary <int, double[]>)); Assert.AreEqual("map<int, vector<double> >", result, "map type of array"); }
public void TestAsCppTypeFor() { string result = VarUtils.AsCPPType(typeof(Dictionary <int, double>)); Assert.AreEqual("map<int, double >", result, "Map type"); }