コード例 #1
0
        /// <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);
        }
コード例 #2
0
        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");
        }
コード例 #3
0
        public void TestAsCppTypeForMapArray()
        {
            string result = VarUtils.AsCPPType(typeof(Dictionary <int, double[]>));

            Assert.AreEqual("map<int, vector<double> >", result, "map type of array");
        }
コード例 #4
0
        public void TestAsCppTypeFor()
        {
            string result = VarUtils.AsCPPType(typeof(Dictionary <int, double>));

            Assert.AreEqual("map<int, double >", result, "Map type");
        }