Exemplo n.º 1
0
        public void ShimTest()
        {
            using (ShimsContext.Create()) {
                VectorOperations.Fakes.ShimVectorManagerString.ConvertVectorVectorOfString =
                    vector => { return(new Vector <double>(1.2, 4, 5)); };

                Vector <string> vectorString = new Vector <string>("6.66", "6", "9");
                Vector <double> vectorDouble = VectorManagerString.ConvertVector(vectorString);

                Assert.AreEqual(1.2, vectorDouble.x);
            }
        }
 public void TestCleanup()
 {
     VectorManagerString = null;
 }
 public void TestInitialize()
 {
     VectorManagerString = new VectorManagerString();
 }