public void DotNetParameterName_Clone_NullNamespaceType() { //arrange DotNetParameter a = DotNetParameter.FromVisualStudioXml("MyType"); //act DotNetParameter result = a.Clone(); //assert Assert.AreEqual(a, result); }
public void DotNetParameter_Clone_ManySegmentsType() { //arrange DotNetParameter a = DotNetParameter.FromVisualStudioXml("A.B.C.MyType"); //act DotNetParameter result = a.Clone(); //assert Assert.AreEqual(a, result); }
public void DotNetParameterName_Clone_NullType() { //arrange DotNetParameter a = new DotNetParameter(); //act DotNetParameter result = a.Clone(); //assert Assert.AreEqual(a, result); }
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()); }