Created
March 17, 2018 12:56
-
-
Save amr-swalha/1c12ec4d3e468ca05c3921596f04feb8 to your computer and use it in GitHub Desktop.
Updating Function Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class FunctionTest | |
| { | |
| [Fact] | |
| public void TestToUpperFunction() | |
| { | |
| // Invoke the lambda function and confirm the string was upper cased. | |
| var function = new Function(); | |
| var context = new TestLambdaContext(); | |
| Student student = new Student | |
| { | |
| Name = "David", | |
| Email = "[email protected]" | |
| }; | |
| var upperCase = function.FunctionHandler(student, context); | |
| Assert.Equal($"Name: {student.Name}, Email: {student.Email}", upperCase); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment