Dev2.Tests.TypeExtentionTest.TypeExtentions_GetTypeFromSimpleName_WhenStringWithQuestionMark_ExpectString C# (CSharp) Method

TypeExtentions_GetTypeFromSimpleName_WhenStringWithQuestionMark_ExpectString() private method

        public void TypeExtentions_GetTypeFromSimpleName_WhenStringWithQuestionMark_ExpectString()
        {
            //------------Setup for test--------------------------
            const string myType = "int?";

            //------------Execute Test---------------------------

            var result = TypeExtensions.GetTypeFromSimpleName(myType);

            //------------Assert Results-------------------------

            Assert.AreEqual(Type.GetType("System.Nullable`1[System.Int32]"), result);
        }
TypeExtentionTest