public void IsPageMethod_ThrowsForNullMethodSymbol()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         var isControllerAction = PagesFacts.IsPageMethod(null);
     });
 }
        private void IsPageMethodReturnsTrue(Type type, string methodName)
        {
            var compilation = GetIsPageMethodCompilation();
            var typeSymbol  = compilation.GetTypeByMetadataName(type.FullName);
            var method      = (IMethodSymbol)typeSymbol.GetMembers(methodName).First();

            // Act
            var isControllerAction = PagesFacts.IsPageMethod(method);

            // Assert
            Assert.True(isControllerAction);
        }