public void TestReturnTypeSet_FluentAPI_SystemType()
        {
            // Arrange
            string            methodName    = "Method";
            Type              newReturnType = typeof(int);
            SGMethodSignature method        = new SGMethodSignature(methodName);

            // Act
            method = method.WithReturnType(newReturnType);

            // Assert
            Assert.AreEqual(newReturnType.Name, method.ReturnType);
        }
        public void TestReturnTypeSetEmpty_FluentAPI_DefaultsToVoid()
        {
            // Arrange
            string            methodName    = "Method";
            string            returnType    = "int";
            string            newReturnType = String.Empty;
            SGMethodSignature method        = new SGMethodSignature(methodName, returnType: returnType);

            // Act
            method = method.WithReturnType(newReturnType);

            // Assert
            Assert.AreEqual("void", method.ReturnType);
        }
        public void TestReturnTypeSet_FluentAPI()
        {
            // Arrange
            string            methodName    = "Method";
            string            returnType    = "void";
            string            newReturnType = "int";
            SGMethodSignature method        = new SGMethodSignature(methodName, returnType: returnType);

            // Act
            method = method.WithReturnType(newReturnType);

            // Assert
            Assert.AreEqual(newReturnType, method.ReturnType);
        }