Example #1
0
        public void DotNetParameter_Clone_ManySegmentsType()
        {
            //arrange
            DotNetParameter a = DotNetParameter.FromVisualStudioXml("A.B.C.MyType");
            //act
            DotNetParameter result = a.Clone();

            //assert
            Assert.AreEqual(a, result);
        }
Example #2
0
        public void DotNetParameterName_Clone_NullNamespaceType()
        {
            //arrange
            DotNetParameter a = DotNetParameter.FromVisualStudioXml("MyType");
            //act
            DotNetParameter result = a.Clone();

            //assert
            Assert.AreEqual(a, result);
        }
Example #3
0
        public void DotNetParameter_Clone_GenericType()
        {
            //arrange
            DotNetParameter a = DotNetParameter.FromVisualStudioXml("A.B.C.MyType{System.Int32}");
            //act
            DotNetParameter result = a.Clone();

            //assert
            Assert.AreEqual(a, result);
            Assert.AreEqual("System.Int32", result.TypeName.GenericTypeParameters[0].ToString());
        }