Question: What 's the outcome of this test?
I’ve got a little question for you. What happens if you run the following test? Try to answer without actually running it! Note that there is no additional test setup.
1 | public class UnitTest |
Update: The answer is that the test will pass and there’ll be no NullReferenceException (if that’s what you’ve guessed). The reason? Because CustomerMetaData is not a class and is a struct, which by definition can never be null.